Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Updating references


Hi everyone,

I need to update every month file references in a master file. The
reference files are updated every month with production data and stored
in a different folder on a P drive. The folders have the same structure
that differs only with the name of the month, so basically I have the
following P:\monthly_reporting\2006\1_January\master_product ion.xls,
and in February the updated reference files will be in
P:\monthly_reporting\2006\2_February\master_produc tion.xls

These links need to be updated every month. Is there a way to construct
a macro to do that (for the moment, we are updating the references
manually with edit/links.)? I am using excel 2003.

Thank you!!


--
LostInSpace
------------------------------------------------------------------------
LostInSpace's Profile: http://www.excelforum.com/member.php...o&userid=32771
View this thread: http://www.excelforum.com/showthread...hreadid=526032

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Updating references

If it's suitable if the spreadsheet automatically updetes itself according to
the system date (WATCH OUT: the reference changes automatically on first day
of each month), then apply this formula in the cell containing the file
reference string:

="P:\monthly_reporting\"&YEAR(TODAY())&"\"&MONTH(T ODAY())&"_"&TEXT(TODAY(),"mmmm")&"\master_producti on.xls"

If you want or must update the sheet at a time defined by YOU, use a cell
for the month No (in my example A2) and use this formula:

="P:\monthly_reporting\2006\"&A2&"_"&TEXT(DATE(190 0,A2,1),"hhhh")&"\master_production.xls"

Reference shall change WHEN YOU overwrite cell A2!

Regards,
Stefi

€˛LostInSpace€¯ ezt Ć*rta:


Hi everyone,

I need to update every month file references in a master file. The
reference files are updated every month with production data and stored
in a different folder on a P drive. The folders have the same structure
that differs only with the name of the month, so basically I have the
following P:\monthly_reporting\2006\1_January\master_product ion.xls,
and in February the updated reference files will be in
P:\monthly_reporting\2006\2_February\master_produc tion.xls

These links need to be updated every month. Is there a way to construct
a macro to do that (for the moment, we are updating the references
manually with edit/links.)? I am using excel 2003.

Thank you!!


--
LostInSpace
------------------------------------------------------------------------
LostInSpace's Profile: http://www.excelforum.com/member.php...o&userid=32771
View this thread: http://www.excelforum.com/showthread...hreadid=526032


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Updating references

Sorry, the correct second formula is

="P:\monthly_reporting\2006\"&A2&"_"&TEXT(DATE(190 0,A2,1),"mmmm")&"\master_production.xls"

Stefi

€˛LostInSpace€¯ ezt Ć*rta:


Hi everyone,

I need to update every month file references in a master file. The
reference files are updated every month with production data and stored
in a different folder on a P drive. The folders have the same structure
that differs only with the name of the month, so basically I have the
following P:\monthly_reporting\2006\1_January\master_product ion.xls,
and in February the updated reference files will be in
P:\monthly_reporting\2006\2_February\master_produc tion.xls

These links need to be updated every month. Is there a way to construct
a macro to do that (for the moment, we are updating the references
manually with edit/links.)? I am using excel 2003.

Thank you!!


--
LostInSpace
------------------------------------------------------------------------
LostInSpace's Profile: http://www.excelforum.com/member.php...o&userid=32771
View this thread: http://www.excelforum.com/showthread...hreadid=526032


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
Updating Absolute References Flipper Excel Worksheet Functions 1 December 18th 08 05:23 PM
Updating Name References in Sheet Chaplain Doug Excel Programming 0 November 24th 05 12:15 AM
Problem updating references VanS[_2_] Excel Programming 6 January 19th 05 09:42 AM
wraptext is not updating when using references to another cell Jurry Excel Programming 7 April 23rd 04 04:23 PM
Updating remote references. Darren[_5_] Excel Programming 2 August 13th 03 01:21 PM


All times are GMT +1. The time now is 09:34 AM.

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"