I use Excel 2003 under Windows 8.1 with Classic Shell. I need Excel 2003 as some needed facilities have been withdrawn subsequently. I use the old macro language and have very limited VB skills.
Text copied to the clipboard in other systems is permanent in Excel until the clipboard is cleared. Similarly objects copied to the clipboard in Excel are permanent in Excel until the clipboard is cleared. However cells copied to the clipboard in Excel are cancelled when Excel cells are altered.
I need a VB facility to put text onto the clipboard from cells within Excel that is permanent (as above). This is equivalent to the following keystrokes within Excel.
Select the cell, , , / / , ,
I’d be very grateful if someone could write a VB facility for me to do this.
My ideal would be for a facility of the form
XTextToClip(Range,Separator)
where Range is a range of cells and Separator is a small text string. The facility would add non-empty cells to the clipboard, with the Separator separating the non blank cells..
Example. For cells B1:B3 holding “Jack“, “and“, “Jill”
XTextToClip(B1:B3,” “) would put “Jack and Jill” onto the clipboard as text.