Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 30
Default Way to change a single line of vb code in several hundred excel files?

Hello :-)

Recently, we bought a new server for our company's
network, and moved all our files over from the old one to
the new one. In order for all of our old files created
with a specific word macro to work, a line must be changed
from \\oldserver\old folder1\oldfolder2\ to
\\newserver\new folder1\new folder2\

Instead of manually going into each of these several
hundred files, opening up the visual basic editor, and
changing them manually, is there a way to either:

1. run a macro on microsoft word every time it opens that
looks at the file when it is opened and If path ==
\\oldserver, then change to \\newserver or something like
that

2. run a windows script or program that looks at all the
excel files in a given folder, and looks at the visual
basic code. If it finds a certain line of code, change it
to the correct line of code.

Is there anything out there like this? I tried to search
the web but I wasn't really sure what it was called that I
needed so I didn't have much luck.

Thanks, Alex
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
change a Figures into text in my excel exp. 200-two hundred Kems Excel Worksheet Functions 2 May 17th 08 02:51 PM
Combining a few hundred excel files into one [email protected] New Users to Excel 1 June 19th 07 06:25 PM
How can I change the width of the single border line for cells? Tracy Excel Discussion (Misc queries) 2 October 29th 06 04:36 PM
how do you execute single line of code? honestlylion Excel Discussion (Misc queries) 2 February 24th 06 03:35 PM
How do I change multi-line entries to single line entries in Exce. CPOWEREQUIP Excel Worksheet Functions 3 April 14th 05 12:38 AM


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