Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Refreshing Data Pulled Thru a Function

I wrote a function to pull data from an external table. I am running into
the following issue - when the data in the table updates, my spreadsheet does
not. While I do not want my spreadsheet to update automatically, I would
like to update it on a demand basis. I have tried the refresh data option
under the Data menu, but it is "grayed" out and not available. I have
likewise tried the Refresh All button under the External Data menu. While
this button "clicks", my information does not updage.

Any help would be greatly appreciated!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,163
Default Refreshing Data Pulled Thru a Function

Refresh external data only works on querytables created through MSQuery or
created through code (your function does not qualify as a querytable). If
you want to recalculate your formula cells on demand, you can set up a
commandbutton or toolbar button or the equivalent to trigger the
recalculation, then use the Range(FormulaCells).Calculate method to force a
recalculation of your user function (or recalculate the whole sheet, if you
do not know in advance where the cells are).

"Chris Brown" wrote:

I wrote a function to pull data from an external table. I am running into
the following issue - when the data in the table updates, my spreadsheet does
not. While I do not want my spreadsheet to update automatically, I would
like to update it on a demand basis. I have tried the refresh data option
under the Data menu, but it is "grayed" out and not available. I have
likewise tried the Refresh All button under the External Data menu. While
this button "clicks", my information does not updage.

Any help would be greatly appreciated!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Refreshing Data Pulled Thru a Function

So if my cell range was A2:V100, in the macro, the line would appear as
Range(A2:V500).Calculate?

"K Dales" wrote:

Refresh external data only works on querytables created through MSQuery or
created through code (your function does not qualify as a querytable). If
you want to recalculate your formula cells on demand, you can set up a
commandbutton or toolbar button or the equivalent to trigger the
recalculation, then use the Range(FormulaCells).Calculate method to force a
recalculation of your user function (or recalculate the whole sheet, if you
do not know in advance where the cells are).

"Chris Brown" wrote:

I wrote a function to pull data from an external table. I am running into
the following issue - when the data in the table updates, my spreadsheet does
not. While I do not want my spreadsheet to update automatically, I would
like to update it on a demand basis. I have tried the refresh data option
under the Data menu, but it is "grayed" out and not available. I have
likewise tried the Refresh All button under the External Data menu. While
this button "clicks", my information does not updage.

Any help would be greatly appreciated!

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
Create column with data pulled from header row Kirk Ace Art Excel Discussion (Misc queries) 3 November 11th 07 11:19 PM
Specific data pulled to new tab Kat Excel Discussion (Misc queries) 2 October 20th 07 12:18 PM
How do I manipulate data pulled from within an excel calendar? wkalmbach Excel Discussion (Misc queries) 1 August 21st 07 03:46 PM
Refreshing external data breaks sorting of function columns BNick Excel Discussion (Misc queries) 0 October 2nd 06 06:46 PM
Web Services function call and data refreshing Jonathan Stone Excel Worksheet Functions 0 June 1st 05 02:43 AM


All times are GMT +1. The time now is 06:45 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"