Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default Event Macro running another macro inside

Wonder if anyone can help, i would like an event macro to run another
macro once a cell reaches a certain number

IE a333 has a number 44 then the event macro will run another macro,

Do i use a "Call" statement for this to enable the macro to run?


Steve

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Event Macro running another macro inside

In worksheet code:

Private Sub Worksheet_Change(ByVal Target As Range)
If Cells(333, "A").Value = 44 Then
Application.EnableEvents = False
Call home
Application.EnableEvents = True
End If
End Sub


In a standard module:

Sub home()
MsgBox ("home")
End Sub

--
Gary's Student


"K1KKKA" wrote:

Wonder if anyone can help, i would like an event macro to run another
macro once a cell reaches a certain number

IE a333 has a number 44 then the event macro will run another macro,

Do i use a "Call" statement for this to enable the macro to run?


Steve


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
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
error running a paste macro Redskinsfan Excel Worksheet Functions 1 August 7th 06 08:02 PM
running a macro from a list rufusf Excel Worksheet Functions 0 February 22nd 06 04:38 PM
Closing File Error jcliquidtension Excel Discussion (Misc queries) 4 October 20th 05 12:22 PM
Macro inside another macro? thrava Excel Discussion (Misc queries) 3 February 2nd 05 01:25 AM


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