PC Review


Reply
Thread Tools Rate Thread

action on open

 
 
Greg Sottile
Guest
Posts: n/a
 
      10th Dec 2009
I have a workbook with multiple worksheets. Upon open, can I force a
specific worksheet to be current? Typically which ever sheet was current
when last saved is the current sheet on open.
 
Reply With Quote
 
 
 
 
Sam Wilson
Guest
Posts: n/a
 
      10th Dec 2009
Yep,

Press Alt + F11 to bring up the VB editor, find your workbook in the project
window and right click it then "View Code" - paste this in:

Private Sub Workbook_Open()

worksheets("Whatever Sheet you want").activate

End Sub


Sam

"Greg Sottile" wrote:

> I have a workbook with multiple worksheets. Upon open, can I force a
> specific worksheet to be current? Typically which ever sheet was current
> when last saved is the current sheet on open.

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      10th Dec 2009
You did not say what version of Excel. This applies to XL 2003 (and down to
XL 1997)
1 Right click the green X Excel logo to the left of the File item on the
menu
2 Select View Code
3 Copy this subroutine into the module window
Private Sub Workbook_Open()
Sheets("Sheet3").Select
End Sub

4 Modify the middle line to suit your needs
5 You many need to reset you macro security for the subroutine to run when
you open the file
bet wishes
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP

"Greg Sottile" <(E-Mail Removed)> wrote in message
news:805D0594-1611-4BF3-ADBD-(E-Mail Removed)...
> I have a workbook with multiple worksheets. Upon open, can I force a
> specific worksheet to be current? Typically which ever sheet was current
> when last saved is the current sheet on open.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open Rpt Action was cancelled Karen Microsoft Access 2 8th Feb 2008 04:20 AM
Action to open attachements =?Utf-8?B?S2V2aW4gaw==?= Microsoft Outlook Installation 1 28th Sep 2005 11:00 PM
Macro open query action with action fail =?Utf-8?B?QW5kcmV3?= Microsoft Access Macros 1 15th Mar 2005 12:17 AM
How to action on Open Sheet Jan Nademlejnsky Microsoft Excel Programming 1 8th Dec 2004 06:03 AM
IE will not open from AOL get Action cancelled BC Windows XP Internet Explorer 0 7th Jul 2003 04:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:00 PM.