Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hallo,
In one of my VB subroutines I have included an Application.Calculation = xlCalculationManual instruction. I normally activate this subroutine by attaching it as a macro (Assign Macro) to a button which I have added to my worksheet using the Forms Toolbar. This works without problems. Now I would like to use the Control Toolbox to put a similar button on my worksheet (I am using Excel 97). However, to this button I can not directly assign a macro anymore (at least I don't know how), so I use the Button_x_Click event to start my subroutine. I have added this code to my VB sheet: Private Sub Button_X_Click() Call Y End Sub Subroutine Y is placed in a module sheet within the same workbook Sub Y Application.Calculation = xlCalculationManual .. rest of code End Sub When I now click on the button, I get a runtime error 1004 "Method calculation of object application failed" Any reaction is appreciated, Martien |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I got this problem run-time error 1004 application defined ... | Excel Discussion (Misc queries) | |||
run-time error '1004': Application-defined or object-deifined error | Excel Programming | |||
Application Run Time Error 1004 and Stack Error | Excel Programming | |||
Application Calculation Error | Excel Programming | |||
Application.Calculation=xlCalculationManual causing run time error? | Excel Programming |