I have the following simple, Excel Macro:
Sub Macro2()
'
' Macro2 Macro
'
x = Selection.Address(False, False)
y = ActiveSheet.Name
Z = "''" & y & "'!" & x
End Sub
Is it possible to send the string named Z to the windows clipboard?
I have the following simple, Excel Macro:
Sub Macro2()
'
' Macro2 Macro
'
x = Selection.Address(False, False)
y = ActiveSheet.Name
Z = "''" & y & "'!" & x
End Sub
Is it possible to send the string named Z to the windows clipboard?
Code that works after using:
Excel VBA code to copy a specific string to clipboard
Sub Macro2()
'
' Macro2 Macro
'
x = Selection.Address(False, False)
y = ActiveSheet.Name
Z = "''" & y & "'!" & x
With New MSForms.DataObject
.SetText Z
.PutInClipboard
End With
End Sub