R
Rudy
Here's the challenge.......
Our organization is upgrading our network from NT to 2000
on the servers, including the share data servers. As part
of the upgrade the engineers either have or are going to
rename the servers with a new convention. One thing they
forgot about was linked information in Excel spreadsheets
(along with other Office apps). So all of our existing
documents (possibly up to 100,000) will become broken if
they have linked cells. Now, from experimentation, I have
found that some will survive if the links were created
with the target book being opened through the default
mapped share, but others were linked with the target
being opened through net..hood, or through a direct path
shortcut.
For example:
A ='S:\marketing\east\[sample.xls]sheet1'!$a$1
B ='\\servername\share\marketing\east\[sample.xls]sheet1'!
$a$1
In the above examples, A will survive, but B will have to
have the servername either removed or replaced with the
S:\.
So....
Is there a way to either create a script or macro that
can be run against a workbook to rewrite the links? Could
we do this without opening the workbooks? Does anybody
know of a utility that could do this?
Any script or macro would have to have enough flexibility
to allow us to add server names, and be stringent enough
so that it only applies itself against links, and not any
data that may emulate one of the obsolete server names.
The closest I have gotten is a macro that displays
formulas then does a find and replace
for "=\\servername\share" and replaces it with "S:\", but
I can't get it to run on all sheets, I have to manually
change sheets. It would have to be smart enough to run on
all sheets (anywhere from 1 to 50 or more).
This is extremely urgent.......
Thanks in advance,
Rudy
Our organization is upgrading our network from NT to 2000
on the servers, including the share data servers. As part
of the upgrade the engineers either have or are going to
rename the servers with a new convention. One thing they
forgot about was linked information in Excel spreadsheets
(along with other Office apps). So all of our existing
documents (possibly up to 100,000) will become broken if
they have linked cells. Now, from experimentation, I have
found that some will survive if the links were created
with the target book being opened through the default
mapped share, but others were linked with the target
being opened through net..hood, or through a direct path
shortcut.
For example:
A ='S:\marketing\east\[sample.xls]sheet1'!$a$1
B ='\\servername\share\marketing\east\[sample.xls]sheet1'!
$a$1
In the above examples, A will survive, but B will have to
have the servername either removed or replaced with the
S:\.
So....
Is there a way to either create a script or macro that
can be run against a workbook to rewrite the links? Could
we do this without opening the workbooks? Does anybody
know of a utility that could do this?
Any script or macro would have to have enough flexibility
to allow us to add server names, and be stringent enough
so that it only applies itself against links, and not any
data that may emulate one of the obsolete server names.
The closest I have gotten is a macro that displays
formulas then does a find and replace
for "=\\servername\share" and replaces it with "S:\", but
I can't get it to run on all sheets, I have to manually
change sheets. It would have to be smart enough to run on
all sheets (anywhere from 1 to 50 or more).
This is extremely urgent.......
Thanks in advance,
Rudy