General information
Category:
COM/DCOM and OLE Automation
>I can't seem to figure out how to set the Activesheet in excel if I don't know the name of the sheet that I want to switch to. Isn't there a mechanism to select the 1st sheet in the workbook and then the 2nd sheet, and so forth, cycling through all of the worksheets in the workbook in other words? Thanks in advance. -Rick
Most of the time, you don't need a sheet to be active to work with it. Just refer directly to the sheet you're interested in:
oXL.ActiveWorkbook.Sheets[1]. ...
Tamar
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only