Hello everyone,
I need to refer a worksheet to modify some properties. My problem is that the name comes from a index value.
The sheet name is Template1(1) and is the sixth sheet.
Worksheets(cell + 5).Visible = True --> works fine and do the job, but how can I call by his name? If there were changes in the number of sheets, it would surely stop working.
Worksheets(("Template" & cell)).Visible = True --> Don't work
Worksheets(""" & cell &""").Visible = True --> Don't Work either.
What would be the correct way to call him? No matter how hard I try, I don't see it.
Thank you, have a nice day.
I need to refer a worksheet to modify some properties. My problem is that the name comes from a index value.
The sheet name is Template1(1) and is the sixth sheet.
Worksheets(cell + 5).Visible = True --> works fine and do the job, but how can I call by his name? If there were changes in the number of sheets, it would surely stop working.
Worksheets(("Template" & cell)).Visible = True --> Don't work
Worksheets(""" & cell &""").Visible = True --> Don't Work either.
What would be the correct way to call him? No matter how hard I try, I don't see it.
Thank you, have a nice day.