Hey everyone, hope all is good,
I need a VBA code that would run on a worksheet when it gets selected.
The user will select a sheet and right after it is selected the code must check the value in cell A1 of sheet named= "Hosting". The value is going to be numerical, for example 1, 2, 3 , 4 and so on. If value is 3 then take the user to column no. 3 which is column C of the selected sheet. If value is 9 then take me to column 9 which is column I in the newly selected sheet.
My workbook consists of multiple worksheets so perhaps a Workbook code will be a better option, instead of inserting the code in each of the sheets?
Thank you, help on the matter will be highly appreciated.
I need a VBA code that would run on a worksheet when it gets selected.
The user will select a sheet and right after it is selected the code must check the value in cell A1 of sheet named= "Hosting". The value is going to be numerical, for example 1, 2, 3 , 4 and so on. If value is 3 then take the user to column no. 3 which is column C of the selected sheet. If value is 9 then take me to column 9 which is column I in the newly selected sheet.
My workbook consists of multiple worksheets so perhaps a Workbook code will be a better option, instead of inserting the code in each of the sheets?
Thank you, help on the matter will be highly appreciated.