Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This is from Chip Pearson's site, specifically:
http://www.cpearson.com/excel/differen.htm " ... Generally, you cannot call a macro directly from a worksheet cell. For example, the following code does not work: =IF(A110,MyMacro). You can simulate the statement =IF(A110,MyMacro) by using the worksheet's Change event. Private Sub Worksheet_Change (ByVal Target As Excel.Range) If Target = [A1] Then If Target.Value 10 Then MyMacro End If End If End Sub ...." Hope this helps. Pete Swingstage wrote: The answer to this question will also solve my problem so if there is a way to place a macro into a formula please what is it? "Obe" wrote in message ... I wish to write a formula that goes to the end value in a column and uses that value for multiplying another cell. I am trying to multiply cell a7 by the last entry in the range c3:c20. I have the macro that goes to that entry but now need the steps to insert it into the formula. At the start of the month only cell c3 has data. On the second day c4 has data and so on. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Insert a Formula with a Macro | Excel Discussion (Misc queries) | |||
Macro to insert formula | Excel Worksheet Functions | |||
Closing File Error | Excel Discussion (Misc queries) | |||
Formula for current month minus one = Quarter number in a macro. | Excel Discussion (Misc queries) | |||
Insert Line Macro | Excel Discussion (Misc queries) |