Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Bob Bob is offline
external usenet poster
 
Posts: 972
Default Macro to Open the Menu Data,Refresh Data,filename,import

When recording a macro I am trying to open the Data Menu, select Refresh Data
a box opens you have to chose the file and Import. I want the code to have
the file name so it will import automatically without having to choose the
file each time.
This is the code now:
Selection.QueryTable.Refresh BackgroundQuery:=False
How do I put what file opens every time?

Thank you for your help,
Bob
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
Import Data refresh problem PsyberFox Excel Discussion (Misc queries) 4 August 20th 08 03:07 PM
Error on Refresh Data Import from Access 2+2=5? Excel Discussion (Misc queries) 0 February 4th 08 04:53 PM
Refresh Data Import Q John[_78_] Excel Programming 6 December 22nd 04 04:09 PM
How to import a path/filename when importing data into an XML list cxparker Excel Worksheet Functions 0 December 7th 04 10:13 PM
Import Data with the filename coming from inputbox ? Iceage Excel Programming 1 November 24th 04 03:22 AM


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