Bob Clausen
New Member
- Joined
- Feb 12, 2010
- Messages
- 4
I have a workbook with 31 worksheets.
One worksheet for everyday of the month.
They are named 1,2,3,...29,30,31
I am having trouble writing a macro to do the following.
In Range("k16") is a value on each worksheet.
On the worksheet #2 i want to average the value of k16 of the first and second sheet.
On the worksheet #3 i want to average the value of k16 of the first, second, third worksheet. I hope you follow my logic.
Of course I don't want to average all worksheets until that day has come to the corresponding worksheet.
I want to put the average for day 1 & 2 on the second worksheet in let's say Range("k17").
Getting caught up in opening sheets or correct order.
Thankyou, Bob
One worksheet for everyday of the month.
They are named 1,2,3,...29,30,31
I am having trouble writing a macro to do the following.
In Range("k16") is a value on each worksheet.
On the worksheet #2 i want to average the value of k16 of the first and second sheet.
On the worksheet #3 i want to average the value of k16 of the first, second, third worksheet. I hope you follow my logic.
Of course I don't want to average all worksheets until that day has come to the corresponding worksheet.
I want to put the average for day 1 & 2 on the second worksheet in let's say Range("k17").
Getting caught up in opening sheets or correct order.
Thankyou, Bob