View Single Post
 
Old 07-18-2023, 10:48 PM
Useful Useful is offline Windows 10 Office 2019
Novice
 
Join Date: Jul 2023
Posts: 6
Useful is on a distinguished road
Default Word VBA code displays run-time error 424

Thanks for your response Guessed.

I have done some further testing and with the new code, the Bookmark is now found whether it's in either the body of the document, or in the Header, but the Run-time error 424 is triggered by the next line (which I have marked before).

Everything works fine on the first page. The problem is only with the second page.

The data is entered in the beginning into the Dialogue Box by the user and is different each time, so I have no choice but to use it.

I don't understand Run-time error 424 and why it's triggered, but I'm certain that this is the key. Perhaps the syntax has to be changed after the new code that is being used to find the Bookmark, however, not being a programmer, I have no clue as to what it should be.

I would be grateful for your help.

Regards
Useful
Reply With Quote