#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default How to start a Macro

I have a macro that adds a graphic image to a cell. I want the condition of
another cell to be the trigger to run the macro. If the trigger cell goes
high (is not blank) I want the macro to run one time. Can I do this with an
if statment? if not please suggest.
--
Rick
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,696
Default How to start a Macro

Go to Tools-Macro-Macros
select your macro, and click Edit.

Where it says
Sub Macro() Replace with:

Private Sub Worksheet_Change(ByVal TargetCell As Range)

Then, skip past the comments (the rows starting with ')

and enter:
If (Range("A1") = 10) Then

Leave your steps that insert the picture here

then enter:
End If

This assumes that A1 is your determining cell, and that a value of 10 or
greater is large enough to trigger the macro.

"Rick_T" wrote:

I have a macro that adds a graphic image to a cell. I want the condition of
another cell to be the trigger to run the macro. If the trigger cell goes
high (is not blank) I want the macro to run one time. Can I do this with an
if statment? if not please suggest.
--
Rick

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
How do you start a Macro? Michael New Users to Excel 7 February 27th 10 04:55 PM
error when running cut & paste macro Otto Moehrbach Excel Worksheet Functions 4 August 9th 06 01:49 PM
link to combobox legepe Excel Discussion (Misc queries) 4 July 26th 06 04:45 PM
Macro to Start an Application Joe Teixeira Excel Discussion (Misc queries) 3 April 26th 06 06:36 PM
Start Macro Daily task GoBucks Excel Discussion (Misc queries) 1 November 10th 05 04:34 PM


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