Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Rich
 
Posts: n/a
Default Excel Functions and Macros

hello.

is it possible to input a function into excel where if a cell does/doesnt
meet a certain critera then excel automatically executes a macro?

e.g. if A20 equals 22-12-05 then excel will run macro Date1.

thank you for any assistance and merry christmas!
--
- Rich
  #2   Report Post  
Posted to microsoft.public.excel.misc
Jerry W. Lewis
 
Posts: n/a
Default Excel Functions and Macros

A function called from a worksheet cell can only return a value (to that
cell) neither it, nor any macros called by it can alter the Excel
environment in any way (change format, change values in other cells, etc).

Assuming that you want to execute a "macro" for one of these forbidden
purposes, you would have to the Worksheet_Change event.

Jerry

Rich wrote:

hello.

is it possible to input a function into excel where if a cell does/doesnt
meet a certain critera then excel automatically executes a macro?

e.g. if A20 equals 22-12-05 then excel will run macro Date1.

thank you for any assistance and merry christmas!


  #3   Report Post  
Posted to microsoft.public.excel.misc
JR
 
Posts: n/a
Default Excel Functions and Macros

Rich, can you expound a little on exactly what you are tying to do? It is
probably possible to this with just a worksheet function and not a macro.

"Rich" wrote:

hello.

is it possible to input a function into excel where if a cell does/doesnt
meet a certain critera then excel automatically executes a macro?

e.g. if A20 equals 22-12-05 then excel will run macro Date1.

thank you for any assistance and merry christmas!
--
- Rich

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 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Using worksheet functions in macros in Excel2000 clippan Excel Worksheet Functions 1 November 17th 05 11:53 PM
Finding MACROs and FUNCTIONs Tom Excel Worksheet Functions 0 October 12th 05 02:15 PM
Excel and Access talking GJR3599 Excel Discussion (Misc queries) 0 March 29th 05 04:59 PM
Excel code conversion Graham Haughs Excel Discussion (Misc queries) 1 January 29th 05 07:45 PM


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