Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Workbook Opening in Certain Place

I posted something yesterday and the suggestions I got were good, but they
did not work. What I want to do is everytime a workbook is opened, have it be
opened to a certain place...A1 of the first sheet. I am not the one that will
be using this spreadsheet, I'm just designing it, and I know that the person
using it will not know to save it in A1 of the first sheet before closing
it...how would I go about doing this...go about programming it into VBA?

Thanks...
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Workbook Opening in Certain Place

Try putting this code into the "ThisWorkbook" code

Private Sub Workbook_Open()
ThisWorkbook.Worksheets(1).Activate
ThisWorkbook.Worksheets(1).Range("A1").Select
End Sub

HTH,
Barb Reinhardt

"Elise148" wrote:

I posted something yesterday and the suggestions I got were good, but they
did not work. What I want to do is everytime a workbook is opened, have it be
opened to a certain place...A1 of the first sheet. I am not the one that will
be using this spreadsheet, I'm just designing it, and I know that the person
using it will not know to save it in A1 of the first sheet before closing
it...how would I go about doing this...go about programming it into VBA?

Thanks...

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Workbook Opening in Certain Place

Hi,

The replies you got from your previous post will work, have another look.

http://www.microsoft.com/office/comm...2-c22e3576ebec

"Elise148" wrote:

I posted something yesterday and the suggestions I got were good, but they
did not work. What I want to do is everytime a workbook is opened, have it be
opened to a certain place...A1 of the first sheet. I am not the one that will
be using this spreadsheet, I'm just designing it, and I know that the person
using it will not know to save it in A1 of the first sheet before closing
it...how would I go about doing this...go about programming it into VBA?

Thanks...

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Workbook Opening in Certain Place

What is "ThisWorkbook" code?


"Barb Reinhardt" wrote:

Try putting this code into the "ThisWorkbook" code

Private Sub Workbook_Open()
ThisWorkbook.Worksheets(1).Activate
ThisWorkbook.Worksheets(1).Range("A1").Select
End Sub

HTH,
Barb Reinhardt

"Elise148" wrote:

I posted something yesterday and the suggestions I got were good, but they
did not work. What I want to do is everytime a workbook is opened, have it be
opened to a certain place...A1 of the first sheet. I am not the one that will
be using this spreadsheet, I'm just designing it, and I know that the person
using it will not know to save it in A1 of the first sheet before closing
it...how would I go about doing this...go about programming it into VBA?

Thanks...

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Workbook Opening in Certain Place

I tried those again...and I must be entering them in the wrong place. Where
do I enter them?

"Mike H" wrote:

Hi,

The replies you got from your previous post will work, have another look.

http://www.microsoft.com/office/comm...2-c22e3576ebec

"Elise148" wrote:

I posted something yesterday and the suggestions I got were good, but they
did not work. What I want to do is everytime a workbook is opened, have it be
opened to a certain place...A1 of the first sheet. I am not the one that will
be using this spreadsheet, I'm just designing it, and I know that the person
using it will not know to save it in A1 of the first sheet before closing
it...how would I go about doing this...go about programming it into VBA?

Thanks...



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Workbook Opening in Certain Place

Hi Elise

Paste the following code into the ThisWorkBook module of your workbook

Private Sub Workbook_Open()
ThisWorkbook.Sheets("Sheet1").Select
Range("A1").Activate
End Sub

Press Alt + F11 to open the Visual Basic Editor
Ctrl + R to ensure the Project Explorer pane is visible.
Double click on this workbook, and paste the code into the large white
pane.
Alt + F11 again to return to Excel and Save the file.

Next time you open you will find the cursor located in A1 of Sheet1,
regardless of where it was at the point of saving.


--
Regards

Roger Govier


"Elise148" wrote in message
...
I posted something yesterday and the suggestions I got were good, but
they
did not work. What I want to do is everytime a workbook is opened,
have it be
opened to a certain place...A1 of the first sheet. I am not the one
that will
be using this spreadsheet, I'm just designing it, and I know that the
person
using it will not know to save it in A1 of the first sheet before
closing
it...how would I go about doing this...go about programming it into
VBA?

Thanks...



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Workbook Opening in Certain Place

Alt+F11 to open VB editor

On the right hand side select workbook from the dropdown and put then in
there.
select the Open event on the other dropdown and put it in there.

Mike

"Elise148" wrote:

I tried those again...and I must be entering them in the wrong place. Where
do I enter them?

"Mike H" wrote:

Hi,

The replies you got from your previous post will work, have another look.

http://www.microsoft.com/office/comm...2-c22e3576ebec

"Elise148" wrote:

I posted something yesterday and the suggestions I got were good, but they
did not work. What I want to do is everytime a workbook is opened, have it be
opened to a certain place...A1 of the first sheet. I am not the one that will
be using this spreadsheet, I'm just designing it, and I know that the person
using it will not know to save it in A1 of the first sheet before closing
it...how would I go about doing this...go about programming it into VBA?

Thanks...

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Workbook Opening in Certain Place

Roger, that will work as long as she doesn't change the worksheet name of
Sheet1 to something else.

"Roger Govier" wrote:

Hi Elise

Paste the following code into the ThisWorkBook module of your workbook

Private Sub Workbook_Open()
ThisWorkbook.Sheets("Sheet1").Select
Range("A1").Activate
End Sub

Press Alt + F11 to open the Visual Basic Editor
Ctrl + R to ensure the Project Explorer pane is visible.
Double click on this workbook, and paste the code into the large white
pane.
Alt + F11 again to return to Excel and Save the file.

Next time you open you will find the cursor located in A1 of Sheet1,
regardless of where it was at the point of saving.


--
Regards

Roger Govier


"Elise148" wrote in message
...
I posted something yesterday and the suggestions I got were good, but
they
did not work. What I want to do is everytime a workbook is opened,
have it be
opened to a certain place...A1 of the first sheet. I am not the one
that will
be using this spreadsheet, I'm just designing it, and I know that the
person
using it will not know to save it in A1 of the first sheet before
closing
it...how would I go about doing this...go about programming it into
VBA?

Thanks...




  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Workbook Opening in Certain Place

Quite correct Barb.
Your code is better as it will work in all circumstances.

--
Regards

Roger Govier


"Barb Reinhardt" wrote in
message ...
Roger, that will work as long as she doesn't change the worksheet name
of
Sheet1 to something else.

"Roger Govier" wrote:

Hi Elise

Paste the following code into the ThisWorkBook module of your
workbook

Private Sub Workbook_Open()
ThisWorkbook.Sheets("Sheet1").Select
Range("A1").Activate
End Sub

Press Alt + F11 to open the Visual Basic Editor
Ctrl + R to ensure the Project Explorer pane is visible.
Double click on this workbook, and paste the code into the large
white
pane.
Alt + F11 again to return to Excel and Save the file.

Next time you open you will find the cursor located in A1 of Sheet1,
regardless of where it was at the point of saving.


--
Regards

Roger Govier


"Elise148" wrote in message
...
I posted something yesterday and the suggestions I got were good,
but
they
did not work. What I want to do is everytime a workbook is opened,
have it be
opened to a certain place...A1 of the first sheet. I am not the one
that will
be using this spreadsheet, I'm just designing it, and I know that
the
person
using it will not know to save it in A1 of the first sheet before
closing
it...how would I go about doing this...go about programming it into
VBA?

Thanks...






  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default Workbook Opening in Certain Place

Thanks everyone! I got it...


"Elise148" wrote:

I posted something yesterday and the suggestions I got were good, but they
did not work. What I want to do is everytime a workbook is opened, have it be
opened to a certain place...A1 of the first sheet. I am not the one that will
be using this spreadsheet, I'm just designing it, and I know that the person
using it will not know to save it in A1 of the first sheet before closing
it...how would I go about doing this...go about programming it into VBA?

Thanks...

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
Opening Workbook at Certain Place Elise148 Excel Discussion (Misc queries) 3 July 12th 07 08:26 PM
move a sheet out of my workbook and place in another folder? trishb123 Excel Discussion (Misc queries) 3 January 10th 07 04:14 PM
1 workbook, 4 worksheets, want to add rows in same place in all WS RogerDO Excel Discussion (Misc queries) 1 December 8th 06 12:12 PM
Opening workbook Todd D. Excel Discussion (Misc queries) 4 September 14th 06 07:10 PM
Keeping cursor in same place on all worksheets in a workbook Phil Burgess Excel Worksheet Functions 1 December 23rd 05 01:32 PM


All times are GMT +1. The time now is 12:17 PM.

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

About Us

"It's about Microsoft Excel"