I'm trying to access each one of the worksheets in my workbook and pass the variable through the workbook to access each. Sorry if that was unclear. Basically
Dim mysheet as worksheet
For each mysheet in worksheets
Sheets(mysheet.name).select
next mysheet
but the line: sheets(mysheet.name).select has an error. I think it is because I need a string where I say mysheet.name.... Unfortunately, I have little experience with VBA and am used to Java. Is there an parallel action in VBA to retrieving a name from an object and passing it as a string parameter?
Dim mysheet as worksheet
For each mysheet in worksheets
Sheets(mysheet.name).select
next mysheet
but the line: sheets(mysheet.name).select has an error. I think it is because I need a string where I say mysheet.name.... Unfortunately, I have little experience with VBA and am used to Java. Is there an parallel action in VBA to retrieving a name from an object and passing it as a string parameter?