Copyメソッド
別の場所へコピー
コピー元のセル.Copy Destination : = コピー先のセル
Range("A1").Copy Destination : = Range("B1")
※Destination は省略可能。
→ Range("A1").Copy Range("B1")
貼り付け方法の指定
Range("A1").Copy
Range("B1").PasteSpecial Paste := 引数
引数Pasteの設定値
設定値 | 内容 |
---|---|
xlPasteAll | すべて |
xlPasteFormat | 書式 |
xlPasteFormulas | 数式 |
xlPasteFormulasAndNumberFormats | 数式と数値の書式 |
xlPasteValues | 値のみ |
xlPasteValuesAndNumberFormats | 値と数値の書式 |