I have a worksheet with a list of Order Numbers in Column A, starting from cell A1. I want to create a macro that will loop through all the Order Numbers in Column A and for each Order Number do the following:
1. Open a file (GenerateReport.xls) in a folder path (C:\temp\)
2. Input the Order Number into cell C6 of the Data tab in GenerateReport.xls
3. Run a macro (Gen_Report) in GenerateReport.xls (this macro will create a report based on the Order Number in cell C6 and close the GenerateReport.xls file)
4. Repeat steps 1,2,3 for the next Order Number
Would really appreciate any help that I can get as I am newbie to VBA. Thank you!
Bookmarks