Dear Gurus,
Run-time Error '1004': Application-defined or object-defined error
The above-mentioned error keeps popping up when I execute the code below. It was running perfectly fine till I switched the sourceWB workbook and made changes to the code to reflect the change.
When the error occurs, the following code was highlighted
lRow = ws1.Cells(Rows.Count, "B").End(xlUp).Row - 2
Since the change, i could not get the macro to run and it is driving me crazy.
Hope someone can help to highlight what could be the possible cause of this error.
Thanks in advance.
Please Login or Register to view this content.
Bookmarks