Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default refresh calculations and external data

Sub mcrRefresh()
Activesheet.Cells.Select
Selection.Calculate
End Sub

This will get the formulas on the worksheet updated.
I'm not sure how to refresh the external data on the hour unless you
used a timer like this one:
http://www.cpearson.com/excel/ontime.htm

Commands to refresh external data would look something like this if it
were a querytable...

Sub rfsh()
For Each QueryTable In ActiveSheet.QueryTables
QueryTable.Refresh
Next
End Sub


Lottie wrote:
I have a complex workbook with 12 worksheets full of formulas and external
data links. The calculations work off the external links. I would like to
build a button that allows the users to refresh all the external data and
calculations on the hour. After reading some articles on this I should be
able to use the F9 button to refresh the whole worksheet. This does not work
if I either set the options to manually calculate or automatically calculate,
however the Ctrl + Alt + F9 works but calculates the whole workbook which
take a lot of time. Is there a way to build a button that calls a macro to do
this?

I used the following but it does not seem to work.

Sub mcrRefresh()
ActiveWorkbook.RefreshAll
End Sub

I also read to use the external data toolbar to refresh the data but this
does not seem to work either.

Thanks for your help!


Reply
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
External data refresh Texas Tonie[_2_] Excel Discussion (Misc queries) 1 April 17th 07 11:02 AM
Refresh external data [email protected] Excel Programming 1 May 5th 06 12:43 PM
external data refresh shoreguy Excel Discussion (Misc queries) 0 March 7th 06 06:30 PM
Run Macro on External Data Refresh John Witte Excel Programming 3 December 3rd 03 01:42 PM
Best way to refresh data from an external file Sharon[_4_] Excel Programming 2 August 13th 03 04:40 PM


All times are GMT +1. The time now is 11:22 AM.

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"