0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VBAのシートの快速描写

Posted at

・要件

データロードのCSVはVBAでExcelに読み込み、セル毎に値をセットする場合、遅くなります。

・対応案

配列はうまく使えば、性能が改善できます。
Rangeと配列間に快速描写

・例

背景

テーブル定義シートから、横のデータシートに定義を移す

      Dim mArr As Variant
      mArr = frmSht.Range("A7:D" & jj).Value 'Valueが必須
      wkSht.Cells(ii + 1, 2).Resize(4, jj + 1).Value = WorksheetFunction.Transpose(mArr) 'Transposeは縦配列は横になる

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?