LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Refresh - Help!

I have read many posts on this site that deals with auto refreshing data in
spreadsheets but none that answer my question or have worked for me. I have a
workbook with many worksheets that I would like to refresh or recalculate all
with a macro. One sheet brings in data from a database on the hour and
calculates it and then it is dispersed in the various spreadsheets with
further calculations. I have used the following but get a subscript out of
range error which makes me believe I have to loop through all the worksheets
to refresh. I am not sure how to do this.

Sub mcrRefresh()

Application.DisplayAlerts = False
Sheets("Sheet1").Select
Range("A1").Select
ActiveWorkbook.RefreshAll
Application.DisplayAlerts = True
MsgBox("Refresh Complete")
End Sub

I thought maybe just using the F9 button would also work but it doesnt. I
have the options set to automatically refresh but that doesn't work either.
The Ctrl + Alt + F9 button works but recalculates everything which can take a
long time.
Thanks for any help!

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
refresh a new worsheet on pivot table refresh [email protected] Excel Worksheet Functions 0 February 9th 07 07:39 PM
How can I 'Enable Automatic Refresh' for Query Refresh by default Anand Deshpande Setting up and Configuration of Excel 0 December 10th 06 04:47 AM
Refresh ceemo Excel Discussion (Misc queries) 7 June 20th 06 06:32 AM
Query parameter "refresh when value changes" doesn't refresh - why Texas_Toast Excel Discussion (Misc queries) 0 January 4th 06 03:32 PM
Query Refresh-Enable Automatic Refresh Dialogue Box Terri Excel Discussion (Misc queries) 0 May 6th 05 08:21 PM


All times are GMT +1. The time now is 05:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"