LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Automatically run macro on sheet change


Good evening Steven

When you say "a change in the sheet" do you mean when the sheet is
changed or when the user changes sheets? If the former, which I
suspect, try this, inserted in the relevant sheet's code section.

Private Sub Worksheet_Change(ByVal Target As Range)

' Your code can go in here

End Sub

Your macro would then trigger every time that particular sheet is
changed.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=380252

 
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
automatically change time in sheet 2, 3, and 4. The Bird Excel Discussion (Misc queries) 3 April 30th 10 04:19 PM
Sheet tab names change automatically MD Excel Discussion (Misc queries) 2 June 27th 09 04:32 PM
How do I automatically change displayed sheet in excel? Tim Messenger Excel Discussion (Misc queries) 2 November 11th 08 04:48 PM
How do I change the Cell color automatically in an Excel sheet wh. stump Excel Worksheet Functions 2 January 6th 05 02:14 PM
change one sheet, and automatically the others Dummie Excel Worksheet Functions 1 November 18th 04 01:34 AM


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

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"