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: 14
Default how to keep formula un-changed when I chage to file folder?

Hi, now I'm meet a problem as follow on Excel 2000 and 2003
I have define one function in one Excel file named "file1.xls"
in another excel file(file2.xls) I wanna use the function defined in
file1.xls, so I write the formula as following,
=file1.xls!function1(A1,A2)

in my VBA code, I can sure file2.xls always work with file1.xls together (
that's means when file2.xls reflash, file1.xls always be opened)

my problem is: when I copy the file2.xls to another folder and file1.xls
still in current folder(for example: D:\test\test1\file1.xls, and file2.xls
move to C:\test1\file2.xls).

when I reopen file2.xls, the formula will changed to:
='D:\test\test1\file1.xls'!function1(A1,A2).

how I can keep the formula don't change when I copy & move file2.xls, anyone
can help me, thanks in advance !
 
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
how to chage existing workbooks background color jwsmith1967 Excel Discussion (Misc queries) 1 June 1st 10 07:51 PM
Need code to save file to new folder, erase from old folder Ron M. Excel Discussion (Misc queries) 1 February 24th 06 06:02 PM
How do I chage/eliminate the names of the columns and rows Diader Charts and Charting in Excel 1 January 23rd 06 04:52 PM
Formula to get Relative Folder Reference to data in another file? RocketDude Excel Worksheet Functions 0 August 17th 05 10:03 PM
Create Folder and Text File in folder Todd Huttentsine Excel Programming 2 April 29th 04 03:41 PM


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