PDA

View Full Version : f9 in vba



lior03
10-07-2006, 12:08 PM
hello
i am trying to figure out how do i make excel , in vba terms calculate the entire worksheet.
to be specific - i took some action and i want to refrain from using the f9 button,can i make my macro take the action i want and then recalculate the entire worksheet.
thanks

Jacob Hilderbrand
10-07-2006, 12:20 PM
Sheets("Sheet1").Calculate
Sheet1.Calculate
Sheets(1).Calculate

Cyberdude
10-07-2006, 12:28 PM
For a little more on this subject, you might want to review the Calculate Method in the VBA Help.

Erdin? E. Ka
10-07-2006, 04:41 PM
Also you can check CalculateFull Method in VBA help.

Taken From VBA Help:


Sub CalculateFullMethod()
If Application.CalculationVersion <> Workbooks(1).CalculationVersion Then
Application.CalculateFull
End If
End Sub