开发者

Copy range to clipboard

开发者 https://www.devze.com 2023-03-20 04:42 出处:网络
I would like to copy a range (specified in the VBA code: A1:I1) into t开发者_如何学Che clipboard, so that the user can paste it whereever he like. How could I do this?Range has a Copy method on it, so

I would like to copy a range (specified in the VBA code: A1:I1) into t开发者_如何学Che clipboard, so that the user can paste it whereever he like. How could I do this?


Range has a Copy method on it, so to copy a range you can just do:

Sub Macro1()
    Range("A1:I1").Copy
End Sub
0

精彩评论

暂无评论...
验证码 换一张
取 消