How do I show the time of the lastest MS Query refresh?
Last edited by Dave H; 01-05-2012 at 10:04 AM.
VBA solution:
Steps:Sub RefreshAll() ' ' RefreshAll Macro ' ' Application.ScreenUpdating = False Application.StatusBar = "Refreshing......." ActiveWorkbook.RefreshAll With Range("a1") .NumberFormat = "mm/dd/yyyy h:mm:ss AM/PM" .Value = Now() End With Application.StatusBar = "Ready" Application.ScreenUpdating = True End Sub
1. Alt-F11 to display VBA editor
2. Right-click -> Insert -> Module
3. Copy/paste code
4. Will have to save-as macro enabled workbook if not already
5. Timestamp will appear in cell A1, so you need to change this if you want it somewhere else
6. You can assign to a button or run macro manually
Thanks for the help!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks