Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TxRaistlin
 
Posts: n/a
Default change directory for refresh data

Hello again everybody.

I've gotten some help on this and it was greatly appreciated. one more
quick question:

I have an excel 2002 file with several sheets that reference external files
with the extension *.out.

I would like to be able to copy this excel file to a new directory and then
update the file after opening it by referencing the *.out files in the
current directory with the same names. i.e. the path of the reference files
and the primary excel file changes but nothing else, their names and
formatting will be the same. The old data from the previous directory would
be replaced by the update process.

Is there a way this can be automated through a macro?

I tried recording a macro of the file update process and changing the
reference path, but only the following was recorded:

Sub update_directory_info()
Selection.QueryTable.Refresh BackgroundQuery:=False
End Sub

Obviously the above does not include the change to the path reference.

There aren't any other external references in the file, so a global path
change would be possible.

The files being referenced are fixed width, but each sheet already has
certain criteria assigned for import of the data and i would like to retain
that.

Once again, I would greatly appreciate the help.

Thanks,

Jason
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
Help with data not getting plotted Scott Ehrlich Charts and Charting in Excel 1 January 23rd 05 05:15 PM
Pulling data from 1 sheet to another Dave1155 Excel Worksheet Functions 1 January 12th 05 05:55 PM
how do I make a formula NOT change when the data range is moved? Alida Andrews Excel Discussion (Misc queries) 2 January 6th 05 09:02 PM
Charting data ranges that change mikelee101 Charts and Charting in Excel 2 December 16th 04 11:07 PM
VBA: Looked up data / now how do I change it? Mcasteel Excel Worksheet Functions 1 October 29th 04 06:25 PM


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