Repeat Macro

posfog

Board Regular
Joined
Jun 2, 2009
Messages
171
Hi All,
Been looking all over the place and cant find an answer to the following

I have this simple macro and want it just to repeat constantly with it never stopping

Sub refresh()
'
' refresh Macro
'


'
Calculate
End Sub


So wondered if someone could assist at all please???
 
Last edited:

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
repeat constantly with it never stopping

I supsect that your request might be more literal than you intended, but this is what you have asked for

Code:
Sub refresh()
'
' refresh Macro
'


'
Do
Calculate
Loop
End Sub
 
Upvote 0
I supsect that your request might be more literal than you intended, but this is what you have asked for

Code:
Sub refresh()
'
' refresh Macro
'


'
Do
Calculate
Loop
End Sub


thanks Jason this refreshes the one formula but the VLOOKUP formulas stay as they are?

Any idea?
 
Upvote 0
It might help if you explain a bit more about what you are trying to do, because it should not be necessary to continually recalculate all the time. If you are trying to solve a problem by doing that it is probably the wrong approach
 
Upvote 0
A formula result will only change when a precedent value changes. If a precedent value has changed and the formula is not updating as expected, then it could be that you're using the wrong type of formula or possibly that the formula doesn't work in the way that you think it will. Without more information from you diagnosing the problem is near impossible.

If you have automatic calculation on then you shouldn't need a macro to refresh constantly.
 
Upvote 0

Forum statistics

Threads
1,223,710
Messages
6,174,019
Members
452,542
Latest member
Bricklin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top