All,
Could someone please help?
I have a code that copies the worksheet from one workbook and paste it into a new workbook.
However in the input worksheet the text starts at B1, so I would like to copy the entire sheet to start at A1.
Here's what I have so far:
For Each sheetje In ImportWB.Sheets
'Debug.Print sheetje.Name
'Debug.Print sheetje.UsedRange.Address
'Find "Virtual" or "DO_" on the sheet
Set findRNG = sheetje.Range("B1").Find(What:="Virtual")
'Search next value
Set findRNG2 = sheetje.Range("B3").Find(What:="DO_")
If (Not findRNG Is Nothing Or Not findRNG2 Is Nothing) Then
sheetje.Copy After:=NewWorkbook.Sheets(1)
'reset RNG
Set findRNG = Nothing
Set findRNG2 = Nothing
Else
'Nothing found
End If
Next
Thanks a bunch
Bookmarks