Strangely, my code was working just fine and now I can't run it anymore.
The line in red doesn't run.Please Login or Register to view this content.
Strangely, my code was working just fine and now I can't run it anymore.
The line in red doesn't run.Please Login or Register to view this content.
Last edited by SIMBAtheCAT; 06-25-2014 at 10:52 AM.
Where is the data in Worksheets(2)?
If posting code please use code tags, see here.
From range("A1", "BG46") and the rg the code is looking for is in cell "B4".
You can't offset 3 rows to above row 1, that would be off the worksheet.
Found the problem!
When my wbTarget workbook is not on the exact sheet(2) then the code doesn't run... That is unfortunate.
Added the bold line and everything works fine.
Thank you Norie for your fast replies again.
Please Login or Register to view this content.
You could also do it like this.
Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks