Make a Macro for MS Word to search-replace strings with regex

I need a Macro for Microsoft Word to search and replace strings in the document.

Full regex power should be available; meaning that Microsoft VBScript Regular Expressions 5.5 will be used. (The reference is already activated on my system.)

The macro should be able to execute whatever search-and-replace operations I define. I imagine it like this:

On starting the macro, a dialogue will appear with two fields where I can enter my search string and my replace string.

On klicking the "Go" button in the dialogue, the macro will search and replace text in the document which is currently open.

If text has been highlighted in the document, the replacement should be executed only on the highlighted section.

If nothing has been highlighted, the replacement should be executed in the entire document.

As an additional feature, the dialogue should keep the latest 30 (or more) search-and-replace combination in a dropdown field or so, so that I can re-use them later without much thinking about the syntax.

The macro code can be delivered as a simple txt-file. I can take the code and put it into one of my modules.

Alternatively, you can send a [url removed, login to view] with the macro included.

Kemahiran: Visual Basic untuk Aplikasi

Lihat lagi: word search replace macro, word reference, visual basic for applications, use regular expressions, text string search, string search in c, starting with visual basic, search text string, search string in c, search string c, search string, search c string, regex is, regex in c, regex c, c string search, c search string, vbscript for, to search, regex &, microsoft word only, microsoft macro, macro microsoft word, is into one word, search search

Tentang Majikan:
( 34 ulasan ) Munich, Germany

ID Projek: #4035985

Dianugerahkan kepada:


Please see Pseudo code below. About 3 hours to do and test. Code will be clean and well documented. Available for any changes requested or problems to be fixed until completion. But I'm available only from Su Lagi

$30 USD dalam sehari
(2 Ulasan)

9 pekerja bebas membida secara purata $68 untuk pekerjaan ini


Hello, I am interested to do this work.

$60 USD dalam 7 hari
(7 Ulasan)

Looking forward to working with you...

$30 USD dalam sehari
(4 Ulasan)

Hi, I can make a really nice form with all your specs.

$55 USD dalam 2 hari
(2 Ulasan)

Hi. I am interested in your project.

$30 USD dalam 7 hari
(1 Ulasan)

Hi, I am expertise in VBA. I would be able to do this with all functionality.

$200 USD dalam 15 hari
(6 Ulasan)

Ready to collabotate on a perfect macro solution.

$80 USD dalam 7 hari
(0 Ulasan)

Hello. More 20 years programming experience. See pmb, please.

$100 USD dalam 0 hari
(0 Ulasan)

Lets Start...

$30 USD dalam sehari
(0 Ulasan)