loading
 
Writing to Clipboard
Pinpres from United Kingdom  [2 posts]
4 years
Is it possible to write a variable value to the clipboard? It would seem that this might be a simple way to pass data to a Visual Basic program.
Steven Gentner from United States  [1371 posts] 4 years
That seems like a good idea ... just a clarification, is just one variable sufficient? If not, what's the easiest format for multiple variables to be written to the clipboard that you can read? As the clipboard is a single object (at least to be compatible with past OS's) only one content item can be written, so in order to transfer multiple variables you'd need to pack them into some sort of format which would need to be expanded on the VB side. Is CSV a good one to use? Or perhaps an XML format? Or maybe just a

name & ":" & value & vbCRLF
name & ":" & value & vbCRLF

?

Thanks,
STeven.
Pinpres from United Kingdom  [2 posts] 4 years
Writing values to the clipboard in CSV would be gratefully received - is it possible?

Pinpres
Steven Gentner from United States  [1371 posts] 4 years
Pinpres,

A radio button selection has been added to the Write_Variables module to allow for writing values directly to the Clipboard.

See the latest version for this update.

STeven.

This forum thread has been closed due to inactivity (more than 4 months) or number of replies (more than 50 messages). Please start a New Post and enter a new forum thread with the appropriate title.

 New Post   Forum Index