Hello,
I hope someone can help me here.
I have an Excel workbook where users enter data and this generates a code. Then there is a button to copy the code to the clipboard with the following function:
Sub CopyCode()
Sheets("Code").Range("Hexcode").Copy
End Sub
The idea is that the code than gets pasted into a different tool, and after that the user presses a reset button that resets all the data to zero. However when clicking the reset button before pasting the code in the other tool, the information stored on
the clipboard changes to all zeroes as well, so then the code that would be pasted is just 0000000000 instead of what was copied to the clipboard, while the script for the reset function has no link at all to the clipboard.
Does anyone know what I can do to let the data on the clipboard remain unchanged to prevent losing the code if someone accidentally clicks reset before pasting it?
Any help would be appreciated.
Thanks,
Pascal