Go Back   Access World Forums > Search Forums

 
Showing results 1 to 9 of 9
Search took 0.01 seconds.
Search: Posts Made By: Galaxiom
Forum: Word 07-19-2017, 02:57 AM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

I have not quite been able to understand how you need to vary the outcome.

However, take a look at the parameters of the Find Object...
Forum: Word 06-23-2016, 01:05 PM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

The problem would be the double quotes inside the strings. They can be escaped by doubling them.

Const Replace2 = " <a href=""176"">INA &sect;101(a)(15)(L) "
Forum: Word 05-27-2012, 07:54 PM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

The screen shot is too blurry to see but I think you are being distracted by the marcos in your own Normal template.

There should be a macro called "DoReplace" in the macros for "ThisDocument".
...
Forum: Word 05-27-2012, 04:17 PM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

You seem to be looking at the macros in your own document. You need to open the one I sent.

All the target files need to be closed before you run it or there will be a conflict when the macro...
Forum: Word 05-27-2012, 01:54 PM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

Open Visual Basic in the Developer Ribbon.

Change the quoted section in the lines that start with Const to what you want them to be. For example:

Const Find1 = " first find string " to...
Forum: Word 05-27-2012, 06:13 AM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

Open the attached document and agree to the macros running.

Instructions are in the document.

It not an especially elegant rendition of the task as it requires you to edit the macro rather...
Forum: Word 05-27-2012, 02:39 AM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

Not a problem. Will post tonight (East Australia, GMT +10).

The Word macro will allow you to choose a group of files in which it replace all instances of multiple designated text strings and save.
Forum: Word 05-27-2012, 02:27 AM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

I have found the macro.

As it stands it is not exactly what you need. It is far more elaborate. It uses records in a text file to change instances of words in a master document based on the name...
Forum: Word 05-27-2012, 12:43 AM
Replies: 24
Views: 33,312
Posted By Galaxiom
Re: Find & Replace - Multiple Word 2007 documents

It can be done in code by automatically opening each document and applying the Replace method to the whole document.

I have almost exactly the code you need. I will dig it out later this evening...
Showing results 1 to 9 of 9

 
Forum Jump



All times are GMT -8. The time now is 09:43 AM.


Microsoft Access Help
General
Tables
Queries
Forms
Reports
Macros
Modules & VBA
Theory & Practice
Access FAQs
Code Repository
Sample Databases
Video Tutorials

Featured Forum post


Sponsored Links


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
(c) copyright 2017 Access World