I have a Userform with a ComboBox with a name of Account01. The ComboBox is populated from the names of the worksheets. The code below should take the user to the selected worksheet but instead I get a Type Mismatch error on the line below. I cannot find anywhere if it is required to specify a type for the ComboBox. I have figured a clunky workaround but I want to learn correctly and not create a patchwork of code.
In the code for processing, the snippet below should take the user to the worksheet. The worksheet does exist and is spelled the same as in the ComboBox and I know they are the same because the ComboBox is populated by a loop grabbing the worksheet names.
I also tried the code below instead without any luck.Sheets(Account01).Select
I have also tried using a Dim statement to assign Account01 as a String but still no luck. I have looked all around but cannot find the answer on the web.ActiveWorkbook.Sheets(Account01).Select
Ideas ?
thanks!