All,
I have been developing an excel workbook menu system for my company over the last few months, and currently have encountered an issue regarding the clipboard with copying and pasting.
On every sheet under
there is some code for generating of that sheets top 3 rows (in these rows there is some hyperlink creation, text resizing etc.
My problem is, if I am on one sheet and I select and copy any data/values, when I click over to a different sheet/tab, the various code in VBA clears the clipboard. Rendering me unable to paste what I have just copied on the prior sheet.
This appears due to the selection changeing, as the visual basic code is run: Currently code like this is enough to 'grey' out the paste button in the excel ribbon.
Is there anyway around this? maybe even setting the clipboard value at the begining of activating a new worksheet to a variable, and then retrieving on the final line of the vba code?
Regards.
I have been developing an excel workbook menu system for my company over the last few months, and currently have encountered an issue regarding the clipboard with copying and pasting.
On every sheet under
Code:
Private Sub Worksheet_Activate
My problem is, if I am on one sheet and I select and copy any data/values, when I click over to a different sheet/tab, the various code in VBA clears the clipboard. Rendering me unable to paste what I have just copied on the prior sheet.
This appears due to the selection changeing, as the visual basic code is run: Currently code like this is enough to 'grey' out the paste button in the excel ribbon.
Code:
Cells(1, 1).Font.Bold = True
Is there anyway around this? maybe even setting the clipboard value at the begining of activating a new worksheet to a variable, and then retrieving on the final line of the vba code?
Regards.