Hi all
tried to find answer in the forum but it seems there is no topic for this.
i have 10 workbooks with different names - each of them contains 1 worksheet with the same name as the workbook. (e.g. report1.xlsx - name of the worksheet - report)
i have a code that transforms the data and copy it to another workbook - at the end the data is collected and transformed into one workbook and worksheet
currently i made the code simple and copied the same code for each workbook and worksheet (all my workbooks are open while i execute code - im trying also to make it open them)
my question is
is there a way to set the workbook name and worksheet name as a variable and to be executed like -
set next workbook name
set next worksheet name
execute code
goback to set next names
after the last workbook quit
Bookmarks