Hello,
I am new to VBA, so please bear with me.
I have an excel file with 13 different tabs. One for each month, and the last is a summary sheet. All of the monthly sheets are identical, except for the actual data in the cells.
I want the summary sheet to combine and sum the information from only one of the monthly sheets at a time.
I have created a combobox that lists all 12 months. When the user selects the appropriate month, the summary sheet should "grab" the data from the corresponding sheet.
I have created a named range on the monthly sheets, the range encompasses all cells on the sheet, and the range names are Jan, Feb, etc.
I want to create a custom function that has 3 arguments. The first argument will be the appropriate range (chosen from the combobox), and the other two will be offset integers.
I am not having much luck with finding a way to pass the range name from the combobox to the custom function.
Thanks in advance.
I am new to VBA, so please bear with me.
I have an excel file with 13 different tabs. One for each month, and the last is a summary sheet. All of the monthly sheets are identical, except for the actual data in the cells.
I want the summary sheet to combine and sum the information from only one of the monthly sheets at a time.
I have created a combobox that lists all 12 months. When the user selects the appropriate month, the summary sheet should "grab" the data from the corresponding sheet.
I have created a named range on the monthly sheets, the range encompasses all cells on the sheet, and the range names are Jan, Feb, etc.
I want to create a custom function that has 3 arguments. The first argument will be the appropriate range (chosen from the combobox), and the other two will be offset integers.
I am not having much luck with finding a way to pass the range name from the combobox to the custom function.
Thanks in advance.