Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hi, TG !
I am trying to use the formula above in a macro that is ran once a button is clicked. the problem is that the formula goes from =sum('*'!A1) to =sum('*''!A1'), this results in an error message (#NAME) does anyone know why this is happening when it is used in a macro? If i use this in a cell and type it myself it works great! I'm not sure "how" do you use the sintax in your vba-code (?) I used like this in immediate code-pane and it is working "as expected"... activecell.formula = "=sum('*'!a1)" resulting formula includes every [A1] cell in all worksheets in workbook (BUT activesheet) hth, hector. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to update a column in a work based on another work sheet | New Users to Excel | |||
If I have a work sheet protected and try to run a macro to hide rows or columns it won't work. Correct? | Excel Programming | |||
Can a macro be made to work based on a formula? | Excel Discussion (Misc queries) | |||
Can a macro be made to work based on a formula? | Excel Discussion (Misc queries) | |||
formula does not work in macro | Excel Programming |