Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default External Data Range Name doesn't refresh

I have a problem when running the code below. Although I refresh the
external data, the name "External Data" references the range when I first
called the procedure. (When selecting the range, the original range is
highlighted.) It doesn't recognize the fact that I updated the range using
"GetHist", which created a new .csv file, and therefore, a new external data
range upon refreshing.

When I run the procedure again, it correctly stores the newly-defined range
(i.e., "External Data").

Please Help!

Sub getexternaldata()
GetHist 'creates .csv file
ActiveWorkbook.RefreshAll 'refreshes ODBC external data range that imports
a .csv file
Range("Sheet1!ExternalData").Select
End Sub
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
Refresh table with external data? David K. Links and Linking in Excel 0 November 5th 09 08:57 PM
External data refresh Texas Tonie[_2_] Excel Discussion (Misc queries) 1 April 17th 07 11:02 AM
Automatic refresh of external data Texas Tonie Excel Discussion (Misc queries) 1 April 11th 07 05:56 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


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