Hi this is my first post, I've not coded for some time until recently so my vba Knowledge may be a little rusty and not upto date with the newest versions of Excel.
I have a userform with dependant comboboxes, textbox, date etc that works great, but the sheet names are hardcoded. (see below code)
![]()
Please Login or Register to view this content.
I wish to change the hard coding ("Fruit Exp") that sets the active sheet to the same name as selected in the cmbType .
Should I try case function?
I hope I've explained the problem clearly enough.
Thank you in advance for any help you can offer.
Cheers
MaxSheets
Update.
I've Changed this code line and similar, {ThisWorkbook.Worksheets("Data").Range("A1")}
this eliminates one of the hard coded name values.
![]()
Please Login or Register to view this content.
Bookmarks