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 Run Excel macro subject to condition


Hello all,

This question is to all the Sultans of Excel.....

I s there a way I can program a macro to auto run, subject to
condition being true...something like,

Whenever the condition, ---If Range("a1") = Range("a2")--- is true
specified Macro should run automatically

--
Warrior180
-----------------------------------------------------------------------
Warrior1800's Profile: http://www.excelforum.com/member.php...fo&userid=2551
View this thread: http://www.excelforum.com/showthread.php?threadid=38957

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Auto Run Excel macro subject to condition

Hi

Look at the change event
http://www.cpearson.com/excel/events.htm

Private Sub Worksheet_Change(ByVal Target As Range)
If Range("A1").Value = Range("A2").Value Then runmymacro
End Sub

Sub runmymacro()
MsgBox ""
End Sub



--
Regards Ron de Bruin
http://www.rondebruin.nl


"Warrior1800" wrote in message
...

Hello all,

This question is to all the Sultans of Excel.....

I s there a way I can program a macro to auto run, subject to a
condition being true...something like,

Whenever the condition, ---If Range("a1") = Range("a2")--- is true a
specified Macro should run automatically.


--
Warrior1800
------------------------------------------------------------------------
Warrior1800's Profile: http://www.excelforum.com/member.php...o&userid=25518
View this thread: http://www.excelforum.com/showthread...hreadid=389570



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
Excel Macro with custom subject line Nilotpol[_2_] Excel Discussion (Misc queries) 0 November 3rd 09 08:52 PM
adding subject when emailing with macro BIGBOY1974AA Excel Worksheet Functions 1 October 12th 08 04:33 PM
Auto email from excel with custom subject Vikram Excel Discussion (Misc queries) 12 July 28th 06 03:42 AM
Macro to email excel workbook with static recipient and auto subject ryan Excel Programming 4 July 9th 04 11:30 PM
Apologies For No Subject. Chart Title via a Macro Alan Excel Programming 0 August 7th 03 06:26 PM


All times are GMT +1. The time now is 08:34 PM.

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"