Hi All
Hoping someone can help me out, not sure if this is even possible!
I have a simple bit of code that pastes data from the clipboard into a worksheet:
Is it possible to have the code check the first 2 characters of text on the clipboard, and make sure it begins with 'WO' before pasting? if not, exit the sub?
Many thanks for your assistance in advance
Hoping someone can help me out, not sure if this is even possible!
I have a simple bit of code that pastes data from the clipboard into a worksheet:
Code:
Sub PasteWOc()
Dim dest As Range
Set dest = Sheets("wo").Range("a1")
dest.PasteSpecial xlPasteAll
Application.CutCopyMode = False
End Sub
Is it possible to have the code check the first 2 characters of text on the clipboard, and make sure it begins with 'WO' before pasting? if not, exit the sub?
Many thanks for your assistance in advance