Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Open excel 2007 with a certain worksheet

What is the start command syntax if I want to open a Excel 2007 workbook with
a certain worksheet ? ( Not the standard "Sheet1" )
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Open excel 2007 with a certain worksheet

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Open excel 2007 with a certain worksheet

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Open excel 2007 with a certain worksheet

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Open excel 2007 with a certain worksheet

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,819
Default Open excel 2007 with a certain worksheet

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Open excel 2007 with a certain worksheet

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Open excel 2007 with a certain worksheet

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 very slow to open even the simplest worksheet John Excel Discussion (Misc queries) 25 July 10th 13 06:24 AM
Access and Excel 2007 don't open PNH@CLC Excel Discussion (Misc queries) 1 August 17th 07 06:21 AM
How do I get a blank worksheet to open up when I open Excel? Art@ISCO Setting up and Configuration of Excel 0 July 17th 07 02:30 PM
excel 2007 does not open file on first try joe schmo Excel Discussion (Misc queries) 0 March 1st 07 05:56 PM
Excel 2007: Files do not open JeffreyBee Excel Discussion (Misc queries) 1 February 16th 07 03:41 PM


All times are GMT +1. The time now is 09:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"