Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
hni
 
Posts: n/a
Default How to Run Macro in open workbook/s


I want to create procedure that running in open workbook or selecting
sheet ?
please show me how ?


--
hni
------------------------------------------------------------------------
hni's Profile: http://www.excelforum.com/member.php...o&userid=28451
View this thread: http://www.excelforum.com/showthread...hreadid=480530

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default How to Run Macro in open workbook/s

Private Sub Worksheet_Activate()
'your code
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--

HTH

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


"hni" wrote in message
...

I want to create procedure that running in open workbook or selecting
sheet ?
please show me how ?


--
hni
------------------------------------------------------------------------
hni's Profile:

http://www.excelforum.com/member.php...o&userid=28451
View this thread: http://www.excelforum.com/showthread...hreadid=480530



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
Make Alignment options under format cells available as shortcut dforrest Excel Discussion (Misc queries) 1 July 14th 05 10:58 PM
I was messing arround with the VBA and now I get the macro warning when I open the work book but when... Marc New Users to Excel 2 June 6th 05 08:08 AM
Help with macro looping and color query function kevinm Excel Discussion (Misc queries) 10 May 26th 05 01:25 AM
Date macro Hiking Excel Discussion (Misc queries) 9 February 3rd 05 12:40 AM
How can I set up a Macro to automatically run when I open a speci. Rick Martin Excel Discussion (Misc queries) 1 January 13th 05 05:06 PM


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