Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default Setting the Sheet on Woorkbook Open

I have a shared workbook that employees enter data on several sheets. When
an employee exits the workbook and another employee opens the workbook it
comes up on the last sheet modified by the previous employee. Is there a way
to set the workbook to always open with the focus on Sheet1? Or do I have to
create a macro to do this?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Setting the Sheet on Woorkbook Open

Create a macro using the Workbook_Open event in the thisworkbook module

http://www.cpearson.com/excel/events.htm
Chip Pearson's page on events
--
Regards,
Tom Ogilvy

"Charlie" wrote in message
...
I have a shared workbook that employees enter data on several sheets.

When
an employee exits the workbook and another employee opens the workbook it
comes up on the last sheet modified by the previous employee. Is there a

way
to set the workbook to always open with the focus on Sheet1? Or do I have

to
create a macro to do this?

Thanks.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Setting the Sheet on Woorkbook Open

You need code

Private Sub Workbook_Open()
Worksheets("Sheet1").Activate
End Sub

'This is workbook event code.
'To input this code, right click on the Excel icon on the worksheet
'(or next to the File menu if you maximise your workbooks),
'select View Code from the menu, and paste the code

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Charlie" wrote in message
...
I have a shared workbook that employees enter data on several sheets.

When
an employee exits the workbook and another employee opens the workbook it
comes up on the last sheet modified by the previous employee. Is there a

way
to set the workbook to always open with the focus on Sheet1? Or do I have

to
create a macro to do this?

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
Printing entire woorkbook Dave Excel Discussion (Misc queries) 2 March 13th 08 01:32 PM
Woorkbook toolbar Question Boy Excel Discussion (Misc queries) 2 February 21st 08 05:19 PM
why, when i open a work sheet does a blank sheet open as well John Excel Discussion (Misc queries) 2 July 7th 07 06:20 PM
woorkbook Exxalis Excel Worksheet Functions 1 August 19th 05 12:13 PM
Close Open Woorkbook and Quit Excel Lucy[_2_] Excel Programming 5 December 24th 03 02:52 PM


All times are GMT +1. The time now is 03:02 AM.

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"