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?

【VBA】データの貼り付け(列ごとの場合)

Last updated at Posted at 2025-04-12

列単位でコピー&ペースト(値の貼り付け)

’変数の定義
Dim wsSrc As Worksheet
Dim wsDest As Worksheet

Set wsSrc = Worksheets("sheet1")   ' コピー元のシート
Set wsDest = Worksheets("sheet2")  ' 貼り付け先のシート

wsSrc.Columns("B").Copy
wsDest.Columns("A").PasteSpecial Paste:=xlPasteValues
Application.CutCopyMode = False
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?