S
Sean
For some reason, when I open up a workbook with several worksheets, I
am not able to activate a worksheet to select a range. Here's the
code:
Workbooks(excelFilename).Activate
Sheets(wsName).Select
Both excelFilename and wsname are Dim as String. As I trace the code,
it opens the workbook, but it will not select the sheet wsName.
For example, it will open the workbook and Sheet1 is active. When it
hits the Sheets(wsName).Select part of the code (where wsName is
"Sheet3), it does not switch to Sheet3.
I've also tried Sheets(wsName).Activate, and this does not work either.
am not able to activate a worksheet to select a range. Here's the
code:
Workbooks(excelFilename).Activate
Sheets(wsName).Select
Both excelFilename and wsname are Dim as String. As I trace the code,
it opens the workbook, but it will not select the sheet wsName.
For example, it will open the workbook and Sheet1 is active. When it
hits the Sheets(wsName).Select part of the code (where wsName is
"Sheet3), it does not switch to Sheet3.
I've also tried Sheets(wsName).Activate, and this does not work either.