Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / April 2007

Tip: Looking for answers? Try searching our database.

Macro to Refresh External data

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Apprentice - 19 Apr 2007 17:52 GMT
Good afternoon,

I try to record a macro to refresh external data but the macro recorder does
not give me anything once I refresh the query and stop the recording.
Does anyone knows why?
Or better if you know the VBA to make this happen -even when the data sheet
is hidden- let me know.

Thanks in advance and greetings from south Fla.
Earl Kiosterud - 20 Apr 2007 02:32 GMT
Apprentice,

This is the code the recorder generated when I tried a refresh on a text file import.

   Range("A1").Select
   Selection.QueryTable.Refresh BackgroundQuery:=False

You'd probably change it to something like:

   Range("A1").QueryTable.Refresh BackgroundQuery:=False
Signature

Earl Kiosterud
www.smokeylake.com

Note: Some folks prefer bottom-posting.  But if you bottom-post to a reply that's already
top-posted, the thread gets messy.  When in Rome...

-----------------------------------------------------------------------

> Good afternoon,
>
[quoted text clipped - 5 lines]
>
> Thanks in advance and greetings from south Fla.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.