Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Auto Open sheet function


I'm curious, is it possible to set a program to run each time a sheet i
accessed? I imagine it would be similiar to:

Private Sub Workbook_Open()
End Sub

Perhaps:

Private Sub WorkSheet("name")_select()
End Sub

etc...

Is this a do able task

--
wilro8
-----------------------------------------------------------------------
wilro85's Profile: http://www.excelforum.com/member.php...fo&userid=2693
View this thread: http://www.excelforum.com/showthread.php?threadid=45139

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Auto Open sheet function

Right click the sheet tab in question and select View Code. Then:

Private Sub Worksheet_Activate()
'your code here
End Sub

Hope this helps
Rowan

"wilro85" wrote:


I'm curious, is it possible to set a program to run each time a sheet is
accessed? I imagine it would be similiar to:

Private Sub Workbook_Open()
End Sub

Perhaps:

Private Sub WorkSheet("name")_select()
End Sub

etc...

Is this a do able task?


--
wilro85
------------------------------------------------------------------------
wilro85's Profile: http://www.excelforum.com/member.php...o&userid=26935
View this thread: http://www.excelforum.com/showthread...hreadid=451397


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
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
open up an excel program with an auto open macro [email protected] Excel Programming 2 July 17th 05 04:48 PM
auto update an open excel sheet over network, with mutiple users crumkerr Excel Worksheet Functions 1 November 29th 04 11:47 AM
auto name sheet w/ macro or function laneman Excel Programming 6 July 8th 04 11:42 PM
Auto Open Excel at Specific Sheet John[_41_] Excel Programming 0 August 1st 03 04:42 PM


All times are GMT +1. The time now is 03:27 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"