rossmcl
Programmer
- Apr 18, 2000
- 128
Hi
I have a spreadsheet with a few VBA-driven formulas.
When I manually recalculate the cells with the forumulas in them (by placing my cursor at the end of the formula and hitting Return, it all works fine.
But when I add a button to the worksheet, and try to recalculate that way, I cannot get it to work.
I tried using the below as the code behind my button, but it isnt working.
(OrderNumberCreator is the name of the worksheet)
Private Sub cmdCalc_Click()
Sheets("OrderNumberCreator").Calculate
End Sub
Please help, this is driving me crazy!
RM
I have a spreadsheet with a few VBA-driven formulas.
When I manually recalculate the cells with the forumulas in them (by placing my cursor at the end of the formula and hitting Return, it all works fine.
But when I add a button to the worksheet, and try to recalculate that way, I cannot get it to work.
I tried using the below as the code behind my button, but it isnt working.
(OrderNumberCreator is the name of the worksheet)
Private Sub cmdCalc_Click()
Sheets("OrderNumberCreator").Calculate
End Sub
Please help, this is driving me crazy!
RM