Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
What is the start command syntax if I want to open a Excel 2007 workbook with
a certain worksheet ? ( Not the standard "Sheet1" ) |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In a macro???
Option Explicit Sub Auto_Open() application.goto thisworkbook.worksheets("sheet9999").range("a1"), _ scroll:=true End Sub Sunnose wrote: What is the start command syntax if I want to open a Excel 2007 workbook with a certain worksheet ? ( Not the standard "Sheet1" ) -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
No, not from a macro. From a command prompt or from "scheduled activities"
------------------------------------ "Dave Peterson" skrev: In a macro??? Option Explicit Sub Auto_Open() application.goto thisworkbook.worksheets("sheet9999").range("a1"), _ scroll:=true End Sub Sunnose wrote: What is the start command syntax if I want to open a Excel 2007 workbook with a certain worksheet ? ( Not the standard "Sheet1" ) -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How would excel/windows know what worksheet to start on--if you have 37 excel
workbook with scheduled activities--and each of those could have multiple differently named worksheets. In a specific workbook, you could use a macro to specify which worksheet to start on. Sunnose wrote: No, not from a macro. From a command prompt or from "scheduled activities" ------------------------------------ "Dave Peterson" skrev: In a macro??? Option Explicit Sub Auto_Open() application.goto thisworkbook.worksheets("sheet9999").range("a1"), _ scroll:=true End Sub Sunnose wrote: What is the start command syntax if I want to open a Excel 2007 workbook with a certain worksheet ? ( Not the standard "Sheet1" ) -- Dave Peterson -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Well, that´s what I would like to tell Excel in the command prompt.
For example: something like c:\program\excel.exe c:\folder\myworkbook!sheet9999.xls Perhaps it´s not possible ? "Dave Peterson" skrev: How would excel/windows know what worksheet to start on--if you have 37 excel workbook with scheduled activities--and each of those could have multiple differently named worksheets. In a specific workbook, you could use a macro to specify which worksheet to start on. Sunnose wrote: No, not from a macro. From a command prompt or from "scheduled activities" ------------------------------------ "Dave Peterson" skrev: In a macro??? Option Explicit Sub Auto_Open() application.goto thisworkbook.worksheets("sheet9999").range("a1"), _ scroll:=true End Sub Sunnose wrote: What is the start command syntax if I want to open a Excel 2007 workbook with a certain worksheet ? ( Not the standard "Sheet1" ) -- Dave Peterson -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Put the sheet selecting macro IN the workbook. When the workbook opens
the desired sheet will be the active one. Sunnose wrote: Well, that´s what I would like to tell Excel in the command prompt. For example: something like c:\program\excel.exe c:\folder\myworkbook!sheet9999.xls Perhaps it´s not possible ? "Dave Peterson" skrev: How would excel/windows know what worksheet to start on--if you have 37 excel workbook with scheduled activities--and each of those could have multiple differently named worksheets. In a specific workbook, you could use a macro to specify which worksheet to start on. Sunnose wrote: No, not from a macro. From a command prompt or from "scheduled activities" ------------------------------------ "Dave Peterson" skrev: In a macro??? Option Explicit Sub Auto_Open() application.goto thisworkbook.worksheets("sheet9999").range("a1"), _ scroll:=true End Sub Sunnose wrote: What is the start command syntax if I want to open a Excel 2007 workbook with a certain worksheet ? ( Not the standard "Sheet1" ) -- Dave Peterson -- Dave Peterson |
#7
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
The background is:
I have a workbook with 5 worksheets named "Monday", "Tuesday","Wednesday","Thursday" and "Friday". I want the Windows "Scheduled activities" to open this book with the sheet "Monday" every monday at a specific time. After opening the sheet, it should connect to an external database and automatically update the data . On tuesday I want the workbook to open the sheet "Tuesday" and so on. I am not sure the "macro" way is the best one. "Bob I" skrev: Put the sheet selecting macro IN the workbook. When the workbook opens the desired sheet will be the active one. Sunnose wrote: Well, that´s what I would like to tell Excel in the command prompt. For example: something like c:\program\excel.exe c:\folder\myworkbook!sheet9999.xls Perhaps it´s not possible ? "Dave Peterson" skrev: How would excel/windows know what worksheet to start on--if you have 37 excel workbook with scheduled activities--and each of those could have multiple differently named worksheets. In a specific workbook, you could use a macro to specify which worksheet to start on. Sunnose wrote: No, not from a macro. From a command prompt or from "scheduled activities" ------------------------------------ "Dave Peterson" skrev: In a macro??? Option Explicit Sub Auto_Open() application.goto thisworkbook.worksheets("sheet9999").range("a1"), _ scroll:=true End Sub Sunnose wrote: What is the start command syntax if I want to open a Excel 2007 workbook with a certain worksheet ? ( Not the standard "Sheet1" ) -- Dave Peterson -- Dave Peterson |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If you have a macro like this in that workbook, then the worksheet that matches
the name of the day of the week will be selected: Option Explicit Sub auto_open() On Error Resume Next Application.Goto ThisWorkbook.Worksheets(Format(Date, "dddd")).Range("a1") If Err.Number < 0 Then Beep Err.Clear End If On Error GoTo 0 End Sub I have no idea how you would connect to that external database and update what you need updated. Sunnose wrote: The background is: I have a workbook with 5 worksheets named "Monday", "Tuesday","Wednesday","Thursday" and "Friday". I want the Windows "Scheduled activities" to open this book with the sheet "Monday" every monday at a specific time. After opening the sheet, it should connect to an external database and automatically update the data . On tuesday I want the workbook to open the sheet "Tuesday" and so on. I am not sure the "macro" way is the best one. "Bob I" skrev: Put the sheet selecting macro IN the workbook. When the workbook opens the desired sheet will be the active one. Sunnose wrote: Well, that´s what I would like to tell Excel in the command prompt. For example: something like c:\program\excel.exe c:\folder\myworkbook!sheet9999.xls Perhaps it´s not possible ? "Dave Peterson" skrev: How would excel/windows know what worksheet to start on--if you have 37 excel workbook with scheduled activities--and each of those could have multiple differently named worksheets. In a specific workbook, you could use a macro to specify which worksheet to start on. Sunnose wrote: No, not from a macro. From a command prompt or from "scheduled activities" ------------------------------------ "Dave Peterson" skrev: In a macro??? Option Explicit Sub Auto_Open() application.goto thisworkbook.worksheets("sheet9999").range("a1"), _ scroll:=true End Sub Sunnose wrote: What is the start command syntax if I want to open a Excel 2007 workbook with a certain worksheet ? ( Not the standard "Sheet1" ) -- Dave Peterson -- Dave Peterson -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2007 very slow to open even the simplest worksheet | Excel Discussion (Misc queries) | |||
Access and Excel 2007 don't open | Excel Discussion (Misc queries) | |||
How do I get a blank worksheet to open up when I open Excel? | Setting up and Configuration of Excel | |||
excel 2007 does not open file on first try | Excel Discussion (Misc queries) | |||
Excel 2007: Files do not open | Excel Discussion (Misc queries) |