Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Workbook_Open - Multiple Events not all working

I have put the following code in This Workbook. The first routine,
containing the splash screen and code to automatically select cell A1
when opening the workbook, seem to be working fine. The second
process, automatically selecting cell A1 when navigating between
worksheets, doesn't seem to work. Any thoughts?

Private Sub Workbook_Open()

' Shows splash screen upon opening the workbook
Application.OnTime Now + TimeValue "00:00:04"),
"KillSplash"
UFSplash.Show

' Opens workbook to Table of Contents cell A1 upon opening the
workbook.
Sheets("Contents").Select
Range("a1").Select

End Sub

Private Sub Workbook_Sheetactivate(ByVal sh As Object)

' When user navigates to different worksheet, opens to cell A1
If TypeName(sh) = "worksheet" Then Range("a1").Select

End Sub


Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Workbook_Open - Multiple Events not all working

If TypeName(Sh) = "Worksheet" Then Range("a1").Select

"Punsterr" wrote:

I have put the following code in This Workbook. The first routine,
containing the splash screen and code to automatically select cell A1
when opening the workbook, seem to be working fine. The second
process, automatically selecting cell A1 when navigating between
worksheets, doesn't seem to work. Any thoughts?

Private Sub Workbook_Open()

' Shows splash screen upon opening the workbook
Application.OnTime Now + TimeValue "00:00:04"),
"KillSplash"
UFSplash.Show

' Opens workbook to Table of Contents cell A1 upon opening the
workbook.
Sheets("Contents").Select
Range("a1").Select

End Sub

Private Sub Workbook_Sheetactivate(ByVal sh As Object)

' When user navigates to different worksheet, opens to cell A1
If TypeName(sh) = "worksheet" Then Range("a1").Select

End Sub


Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default Workbook_Open - Multiple Events not all working

Capital "W" worksheet. Nice. I knew it was something silly like that.
Thanks a bunch, Patrick!

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
screenupdating = false not working in Workbook_open sub TommySzalapski[_29_] Excel Programming 6 August 2nd 05 10:52 PM
Workbook_Open not working Sheena N via OfficeKB.com Excel Discussion (Misc queries) 4 May 6th 05 01:31 AM
Workbook_Open and Workbook_BeforeClose not working Don[_19_] Excel Programming 0 August 10th 04 06:58 PM
Why Excel 2002 crashes on simplest Workbook_Open events? RADO[_3_] Excel Programming 1 November 8th 03 09:31 PM
Workbook_Open event not working jason Excel Programming 2 September 7th 03 04:02 PM


All times are GMT +1. The time now is 08:23 AM.

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"