Z
zSplash
I want to programmatically open a file, then search for and replace text in
the code of that file.
For example, I have a file "Test.dot" that has code setting the default file
path as "C:\Something". I want to modify that code (not my path or my
Normal.dot) -- within the "Test.dot" -- to have the default file path of
"C:\Else". So, when I do it without code, I just search for "C:\Something"
and replace it with "C:\Else" (inside the vba editor of Test.dot), but I
don't know how to do that programmatically.
I hope this makes sense. I really need to know how to modify underlying
code programmatically.
TIA
the code of that file.
For example, I have a file "Test.dot" that has code setting the default file
path as "C:\Something". I want to modify that code (not my path or my
Normal.dot) -- within the "Test.dot" -- to have the default file path of
"C:\Else". So, when I do it without code, I just search for "C:\Something"
and replace it with "C:\Else" (inside the vba editor of Test.dot), but I
don't know how to do that programmatically.
I hope this makes sense. I really need to know how to modify underlying
code programmatically.
TIA