LoginSignup
3
5

More than 5 years have passed since last update.

Excel VBA から、クリップボードにテキストをセットする

Posted at

Excel VBA から、クリップボードにテキストをセットするには、DataObject を使います。

SetText.vb
Dim CB as Object
Set CB = new DataObject
With CB
  .SetText "セットしたい文字列"
  .PutInClipboard  'クリップボードに反映する
End With

参考

3
5
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
3
5