I Need help edit macro

etheer

Board Regular
Joined
Dec 9, 2011
Messages
108
hi my friend plz help me i need edit this macro RefreshAll and auto save every 5 min

Sub auto()
'
' auto Macro
'
' Keyboard Shortcut: Ctrl+j
'
ActiveWorkbook.RefreshAll
End Sub
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
You could use:

Code:
Sub auto()'
' auto Macro
'
' Keyboard Shortcut: Ctrl+j
'


    With ActiveWorkbook
        .Parent.AutoRecover.Enabled = True
        .Parent.AutoRecover.Time = 10
        .EnableAutoRecover = True
        .RefreshAll
    End With
    
End Sub

If I look at your previous topics and posts, I would like to ask you to be more specific and helpful towards helpers.
Also, please use
Code:
 tags even for short macros. Thanks.
 
Upvote 0
thank you
i need code RefreshAll and after five minutes save




Sub auto()
'
' auto Macro
'
' Keyboard Shortcut: Ctrl+j
'
ActiveWorkbook.RefreshAll
End Sub
Sub sort()
'
' sort Macro
'
' Keyboard Shortcut: Ctrl+l
'
ActiveWorkbook.Save
End Sub
 
Upvote 0
Change the number 10 in my code in 5. I wish life was always as simple as that.
Again, the question to use
Code:
 tags. Thanks.
 
Upvote 0
not work this code


Sub auto()' ' auto Macro ' ' Keyboard Shortcut: Ctrl+j ' With ActiveWorkbook .Parent.AutoRecover.Enabled = True .Parent.AutoRecover.Time = 10 .EnableAutoRecover = True .RefreshAll End With End Sub</pre>
 
Upvote 0

Forum statistics

Threads
1,223,785
Messages
6,174,539
Members
452,571
Latest member
MarExcelTips

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