Calculate Selected cells only.
Try this...........
Sub ConditionalRecalc()
With Selection
..Calculate
End With
End Sub
Vaya con Dios,
Chuck, CABGx3
"Stan" wrote:
Hi All,
I am not sure if this is the right forum for a VBA question, but I did not
find a more suitable one.
I have a large workbook that takes a very long time to re-calculate so I am
forced to turn off auto calc while working. However I need to re-calc some
specific cells every time I update their formulas. I have an XLA addin
automatically load that has a sub for calculating ONLY the selected cells
withough re-calc-ing the whole nine yards.
Sub CalcSelected()
Selection.Calculate
End Sub
I am getting errors, I even get an error if I move the sub into a module in
the very spreadsheet I am working on.
Does anyone know how to do this correctly?
Thanks in advance!
Stan
|