question

JrgenValentin-0722 avatar image
0 Votes"
JrgenValentin-0722 asked JrgenValentin-0722 answered

Record macro: "Find & Replace" function does not work

Hello!
I am desperate to record a macro with the "Find & Replace" function in Word. But it doesn't work.
During the recording process, I can easily find and replace words, paragraph marks, etc.
But if I want to run the macro, it doesn't work. The procedure does not appear in the VBA log either.
Where is the mistake?

office-vba-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


After pressing "Stop Recording", maybe you did not find the right module and generated macro in VBA editor.

0 Votes 0 ·
JohnKorchok avatar image
0 Votes"
JohnKorchok answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JrgenValentin-0722 avatar image
0 Votes"
JrgenValentin-0722 answered

Hello!
Many thanks for the answer.
I've tried for a long time and now I've found a solution.
The problem is that I shouldn't start the "Find and Replace" function right after starting the macro recording.
If I first enter some text, which I then delete again, the "Find-Replace" function will then also work.
This is probably an amateur solution to the problem, but it works.
But maybe you have a better and more professional solution, which of course interests me very much.
Many greetings

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.