browserice
Technical User
I am starting on Excel VBA as of today. I have this Excel file at the office with multiple worksheets in it. We use it to manualy add data on daily worksheets (one for each day of the month) and then take the totals of that daily worksheet to copy to another worksheet (same excel file) where all daily totals are used for a monthly overview and in a graph.
The problem with this is that we have to manualy change this excel file according to the month we want to use it for. So we have to rename all daily worksheets to match each days of the current month, change all month names mentions in all worksheets, ...
I want to create VBA codes in this excel file so that when we open it, the setup worksheet will be used to enter what month we want to use this workbook (that's how you call this excel file, right ?) and have it automaticaly create all necessary worksheets and change what ever infos are needed. I have a general idea on how to do this.
But since I am starting on VBA, I need to know what is the syntax to refer to the followings the general code region :
- object-a on worksheet-x
- method of object-b on worksheet-z
- worksheet-w
- cell-z on worksheet-t
I am not sure on how to code the references.
The problem with this is that we have to manualy change this excel file according to the month we want to use it for. So we have to rename all daily worksheets to match each days of the current month, change all month names mentions in all worksheets, ...
I want to create VBA codes in this excel file so that when we open it, the setup worksheet will be used to enter what month we want to use this workbook (that's how you call this excel file, right ?) and have it automaticaly create all necessary worksheets and change what ever infos are needed. I have a general idea on how to do this.
But since I am starting on VBA, I need to know what is the syntax to refer to the followings the general code region :
- object-a on worksheet-x
- method of object-b on worksheet-z
- worksheet-w
- cell-z on worksheet-t
I am not sure on how to code the references.