Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 258
Default Replacing Text in a Cell Reference

Collective guruosity --

I've built two workbooks, one ('User Data.xls') that pulls a lot of info
from the other ('Reference Data.xls'). I want to distribute this set to
other company employees. The problem is this: When I send them to the new
user's computer, 'User Data' still looks to the workbook on MY computer,
rather than the new one on the user's box. I've instructed the users that I
want these two workbooks to be in the same folder.

I already have some code that starts up as the workbook opens. I would
think I could add some more that wipes out the references to my computer, and
replaces each with just a "\", to look in the same folder on the user's
computer. However, I'd like to make the 'find-and-replace' language generic
so that it can't go wrong.

All the cells affected are on a single page in 'User Data', named "Chart
Preparation".

Thanx in advance for any help you can give me.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 694
Default Replacing Text in a Cell Reference

Hi,
Manually, to modify the path/source for external links, you would go in Edit
Links.

The vba equivalent is:
thisworkbook.ChangeLink currentNam, newName, type
see the online help on this method.
--
Regards,
Sébastien
<http://www.ondemandanalysis.com


"pdberger" wrote:

Collective guruosity --

I've built two workbooks, one ('User Data.xls') that pulls a lot of info
from the other ('Reference Data.xls'). I want to distribute this set to
other company employees. The problem is this: When I send them to the new
user's computer, 'User Data' still looks to the workbook on MY computer,
rather than the new one on the user's box. I've instructed the users that I
want these two workbooks to be in the same folder.

I already have some code that starts up as the workbook opens. I would
think I could add some more that wipes out the references to my computer, and
replaces each with just a "\", to look in the same folder on the user's
computer. However, I'd like to make the 'find-and-replace' language generic
so that it can't go wrong.

All the cells affected are on a single page in 'User Data', named "Chart
Preparation".

Thanx in advance for any help you can give me.

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
Replacing Text in a cell with blanks Tom Excel Discussion (Misc queries) 2 May 10th 09 03:23 PM
Replacing cell reference on multiple sheets in one go.... neilcarden Excel Worksheet Functions 3 August 6th 08 11:20 AM
Replacing a Table-array with a cell reference in vlookup Allan Excel Worksheet Functions 4 January 15th 08 01:57 PM
replacing text in a cell Roger Converse[_2_] Excel Discussion (Misc queries) 4 December 7th 07 07:50 PM
Replacing hard code with reference to a cell value jojo Excel Programming 2 March 6th 05 02:51 PM


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