My file has many, many worksheets that are named according to a convention (date - e.g. 1010 is oct. 10th). So, I have say 31 pages in October 1001, 1002, etc.
I have two related questions:
first, my macro needs to be able to activate one of these worksheets based upon a variable that is either set or part of a loop that, how can I insert or use a variable to accomplish the same thing as Workseets("sheet1").Activate does for fixed name?
second, In creating a summary page, I want to refer to values or formulas on the individual pages. how can I insert the worksheet name as a variable? Is there another formula entry method besides .formula and formulaR1C1? I'd like to be able to loop through the worksheet names and enter formulas with the worksheet name equal to the loop variable.
I have two related questions:
first, my macro needs to be able to activate one of these worksheets based upon a variable that is either set or part of a loop that, how can I insert or use a variable to accomplish the same thing as Workseets("sheet1").Activate does for fixed name?
second, In creating a summary page, I want to refer to values or formulas on the individual pages. how can I insert the worksheet name as a variable? Is there another formula entry method besides .formula and formulaR1C1? I'd like to be able to loop through the worksheet names and enter formulas with the worksheet name equal to the loop variable.