Nov 15, 2012 #1 Gavona Technical User Joined Aug 27, 2002 Messages 1,771 Location GB I am puzzled over this error! The line of code is: If Application.Calculation = xlCalculationManual Then myRange.Calculate At this point myRange.address = "$F$8:$F$1962" The error is Runtime error '1004' Calculate method of Range class failed Gavin
I am puzzled over this error! The line of code is: If Application.Calculation = xlCalculationManual Then myRange.Calculate At this point myRange.address = "$F$8:$F$1962" The error is Runtime error '1004' Calculate method of Range class failed Gavin
Nov 15, 2012 #2 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US hi, Code: If Application.Calculation = xlCalculationManual Then [myRange].Calculate or Code: If Application.Calculation = xlCalculationManual Then [\Range("myRange").Calculate Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
hi, Code: If Application.Calculation = xlCalculationManual Then [myRange].Calculate or Code: If Application.Calculation = xlCalculationManual Then [\Range("myRange").Calculate Skip, Just traded in my old subtlety... for a NUANCE!
Nov 15, 2012 #3 S SkipVought Programmer Joined Dec 4, 2001 Messages 47,492 Location US That is assuming that MyRange is defined on the sheet. Skip, Just traded in my old subtlety... for a NUANCE! Upvote 0 Downvote
That is assuming that MyRange is defined on the sheet. Skip, Just traded in my old subtlety... for a NUANCE!
Nov 15, 2012 Thread starter #4 Gavona Technical User Joined Aug 27, 2002 Messages 1,771 Location GB I should have googled first. I rather suspect that this resolves my issue: kb292476 kb292476 said: The Range.Calculate method does not function when both the Manual calculation option and the Iteration check box are selected. Click to expand... I can't believe I haven't come across the issue before but it seems quite likely that that will resolve the issue. Skip: myRange is a variable and the vba works in 2007 so I don't think that is the issue. Sasdly I can't test until next Tuesday. Gavin Upvote 0 Downvote
I should have googled first. I rather suspect that this resolves my issue: kb292476 kb292476 said: The Range.Calculate method does not function when both the Manual calculation option and the Iteration check box are selected. Click to expand... I can't believe I haven't come across the issue before but it seems quite likely that that will resolve the issue. Skip: myRange is a variable and the vba works in 2007 so I don't think that is the issue. Sasdly I can't test until next Tuesday. Gavin