Hello all - I am writing a macro from a vendor file that first creates a new workbook, creates report headings, then goes back to the vendor file and copies individual cells to the report workbook, pasting the cell values under the appropriate heading. Note that I'm not copying entire rows, but picking up only about 5 cells from each file to copy to the report.
I have 15 different vendor files. Some of the vendor files have 5 line items to copy from, others have over 100. And because of formatting differences I will have to write a macro for each vendor - but no biggie.
My question is very basic: how can I write simple code to tell the macro stop when it reaches the end of the rows it is copying from? I can't really use a counter since the number of rows will vary by vendor and each month will be different as well.
I have looked through many of the posts here as well as elsewhere, and some ideas are close but not exactly right.
Thank you for any quick responses - my client asked for this to be done "yesterday" so to speak. Help!
Diane
I have 15 different vendor files. Some of the vendor files have 5 line items to copy from, others have over 100. And because of formatting differences I will have to write a macro for each vendor - but no biggie.
My question is very basic: how can I write simple code to tell the macro stop when it reaches the end of the rows it is copying from? I can't really use a counter since the number of rows will vary by vendor and each month will be different as well.
I have looked through many of the posts here as well as elsewhere, and some ideas are close but not exactly right.
Thank you for any quick responses - my client asked for this to be done "yesterday" so to speak. Help!
Diane