LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Triggering Macro Execution

I want to run a macro that detects when a particular cell in a Range changes
and then review that range and resolve conflicts that may exist. I think I
have two possible problems:

1. How to trigger the macro when any cell in the range changes.

2. If the answer to 1 is to define a Function to which the range is an
input, how do I get it to change a cell without actually returning a value?
For example:

Function test(tt As Range)

Range("F17").Select
ActiveCell.FormulaR1C1 = "try here"

End Function

This function is called whenever a cell in the 'tt' range is change, but
when the line: ActiveCell.FormulaR1C1 = "try here"
is executed the function fails with a #value error.

Any ideas gratefully received.


 
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
Macro Execution C Brandt Excel Discussion (Misc queries) 2 July 13th 07 07:23 AM
Function triggering a macro Leon Excel Worksheet Functions 1 December 22nd 05 07:26 AM
Daily Macro Triggering JB2010 Excel Discussion (Misc queries) 2 November 2nd 05 04:28 PM
Triggering an Excel macro on press of SAVE darshan Excel Programming 2 December 15th 03 04:57 AM
Restricting Macro Execution Bob Umlas[_3_] Excel Programming 2 December 3rd 03 04:29 PM


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