LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default change directory for refresh data

Hello again everybody.

Sorry for the cross-post in excel - general questions, meant to post this
here.

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
 
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
Create refresh button in worksheet to refresh Pivot Table Data Ron Excel Worksheet Functions 1 October 13th 07 01:20 AM
Change directory Jeff Excel Discussion (Misc queries) 6 September 27th 06 04:08 PM
change directory for refresh data TxRaistlin Excel Discussion (Misc queries) 0 February 7th 05 09:09 PM
Change directory for DOS window Garry[_4_] Excel Programming 1 January 9th 04 05:44 PM
Pivot Table REFRESH Flaw -- Saves Old Data in Selection Area AFTER REFRESH Ken Roberts Excel Programming 3 September 11th 03 06:02 AM


All times are GMT +1. The time now is 08:42 AM.

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"