Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Autorefreshing excell external data while opening from VBA code

Hi Everybody,

I've created a Excel sheet with a external data link.. Now, I want to
open this excell sheet from VBA code and do some calculation on the
latest data, but, the problem is that the data doesn't gets updated
while I open the sheet from VBA code. [Note: I've selected the option
to update external data as soon as the sheet opens and its working if
I open the sheet normally i.e not from VBA code]

Thanks in advance,
Devendra
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Autorefreshing excell external data while opening from VBA code

Devendra,

Does ThisWorkbook.RefreshAll work?

Rob


"Devendra" wrote in message
om...
Hi Everybody,

I've created a Excel sheet with a external data link.. Now, I want to
open this excell sheet from VBA code and do some calculation on the
latest data, but, the problem is that the data doesn't gets updated
while I open the sheet from VBA code. [Note: I've selected the option
to update external data as soon as the sheet opens and its working if
I open the sheet normally i.e not from VBA code]

Thanks in advance,
Devendra



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 Warning Message - I have No External Data in wrkbk Cass_makeitfun[_2_] Excel Discussion (Misc queries) 0 May 12th 10 09:02 PM
Opening An External File Matthew[_2_] Excel Discussion (Misc queries) 3 October 5th 09 03:33 PM
Getting External Data based on criteria insde of the external data BigMacExcel Excel Discussion (Misc queries) 0 August 31st 09 06:41 PM
opening excell pilgrim Excel Discussion (Misc queries) 3 January 19th 09 08:48 PM
how do I activate links without opening external workbooks? teh_chucksta Excel Discussion (Misc queries) 0 August 29th 05 11:22 PM


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

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

About Us

"It's about Microsoft Excel"