Hi,
I am trying to handle errors in my macro. The code goes down a number of rows, opens a worksheet based on that row, and copys a value from that worksheet into a cell in that row, then moves down.
On a error I'd like to
a) have the word 'error' in the cell where the value would be and
b) skip to the next row
this is the code I have so far - but this does not skip to the next x, but resumes in the middle of the code which has the effect of trying to shut down my main workbook (as the code says close workbook, at which point the secondary sheet would be open, but isn't, as the error is generally in finding the file to open.)
How can I get it to skip to next x?
Thanks for help
Bookmarks