![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 133
|
Is it possible to run a macro from within formula in a cell and still refer to another cell? eg [formula is cell B1]=if(a1>0,run macro****;G1) so it would check to see if A1 is greater than 0 then go off and run the macro then let the cell with the formula in = whatever is in cell G1.
|
|
|
|
|
|
#2 |
|
Join Date: Mar 2002
Posts: 20
|
You cannot run a macro from a worksheet formula.
A UDF can be included in a formula. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|