File path problems

Jook

New Member
Joined
Mar 19, 2002
Messages
22
Here are some file paths I have:

H:AccountingBudget 2000Sales
Department expenses

H:AccountingBudget 2001 Sales
Department expenses

H:AccountingBudget 2002 Sales
Department expenses

H:AccountingBudget 2003 Sales
Department expenses

The workbooks “Sales” and “Department expenses” in each year are linked.
Each year I create a new Budget year and copy the previous years files.

The problem I am having is the links between sales and department expenses refer to the previous years files. For example the 2003 links in sales would read H:AccountingBudget 2002’[Department expenses]….
This is easy enough to fix with a search and replace. The real pain is the macros I have attached to my custom toolbars they refer to the previous year and I actually have to edit each button I have made.

Is there a simply way to make Excel look in the current file path automatically when a group of related workbooks are copied?

Any ideas would be appreciated.
This message was edited by Jook on 2002-04-12 12:50
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
if file is "c:windowsdesktopbook1.xls" then

thisworkbook.Path = "c:windowsdesktop"

You can use thisworkbook.Path value in code.
 
Upvote 0

Forum statistics

Threads
1,214,909
Messages
6,122,189
Members
449,072
Latest member
DW Draft

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top