I would like to copy the data from a work book that I know is open, however i do not know the full name of the workbook
I do know the work book name will be in the format
and the sheet name will be
Using just this RED indicator is it possible to copy the entire contents of this sheet?
Alternative option.....I used to manually copy this data and then run a macro..
This has worked well, but now this line cancelled the copied cell so the pastespecial runs into an error.
is it possible to run clearcontents without losing the clipboard?
I do know the work book name will be in the format
Code:
mm RED[SIZE=1][I]1234567[/I][/SIZE] ddmmyy.xls
Code:
RED[SIZE=1]1234567[/SIZE]
Using just this RED indicator is it possible to copy the entire contents of this sheet?
Alternative option.....I used to manually copy this data and then run a macro..
Code:
Sub Stage1()
Application.ScreenUpdating = False
Sheets("INVOICE").Cells.ClearContents
'On Error GoTo Handler
Sheets("INVOICE").Range("A1").PasteSpecial xlValues
.
.
This has worked well, but now this line cancelled the copied cell so the pastespecial runs into an error.
Code:
Sheets("INVOICE").Cells.ClearContents
is it possible to run clearcontents without losing the clipboard?
Last edited: