ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Command line to open a specific worksheet (https://www.excelbanter.com/excel-worksheet-functions/121104-command-line-open-specific-worksheet.html)

vIQleS

Command line to open a specific worksheet
 
Is there a way to open a specific worksheet from the command line?

Chip Pearson

Command line to open a specific worksheet
 
Not really. You can use a macro called Auto_Open that would select the
sheet,

Sub Auto_Open()
Worksheets("Sheet3").Select
End Sub

But that means that Sheet3 will always be the active sheet when the file is
opened. You can't supply a value from the command line.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"vIQleS" wrote in message
...
Is there a way to open a specific worksheet from the command line?




vIQleS

Command line to open a specific worksheet
 
Ok - thanks

"Chip Pearson" wrote:

Not really. You can use a macro called Auto_Open that would select the
sheet,

Sub Auto_Open()
Worksheets("Sheet3").Select
End Sub

But that means that Sheet3 will always be the active sheet when the file is
opened. You can't supply a value from the command line.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
(email address is on the web site)


"vIQleS" wrote in message
...
Is there a way to open a specific worksheet from the command line?






All times are GMT +1. The time now is 07:01 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com