J
JohnR
Hi all,
I'm finally sick and tired of manually generating get/set properties for
each private variable in a class so I'm trying to create a macro to do it.
I'm stuck because I can't figure out how to get a string that is in the
clipboard into a variable in the macro. I tried this:
Dim x as string = DTE.ActiveDocument.Selection.Paste() thinking it would
"paste" the clipboard into the string variable X, but it just pasted the
string into the document.
Can somebody give me a code example that transfers the string in the
clipboard into a variable in the macro?
Thanks,
John
I'm finally sick and tired of manually generating get/set properties for
each private variable in a class so I'm trying to create a macro to do it.
I'm stuck because I can't figure out how to get a string that is in the
clipboard into a variable in the macro. I tried this:
Dim x as string = DTE.ActiveDocument.Selection.Paste() thinking it would
"paste" the clipboard into the string variable X, but it just pasted the
string into the document.
Can somebody give me a code example that transfers the string in the
clipboard into a variable in the macro?
Thanks,
John