View Single Post
 
Old 03-20-2023, 03:07 PM
chulupa89 chulupa89 is offline Windows 10 Office 2021
Novice
 
Join Date: Mar 2023
Posts: 1
chulupa89 is on a distinguished road
Question Run-Time error 5941 The Requested member of the collection does not exist , Please help

Hello, Im trying to use this macro for finding/replacing longer than 255 characters,

I went to this site for that Install/Employ VBA Procedures (Macros)

It said to use this code on the VB maco on word. You can find the exact code on the site But I keep getting that error. I have Windows Office 2021. Basically, All I did was click on "Macro" Created called "Test" and the VB window pops up.. Then I deleted everything there and just copied and pasted the entire code.. The only thing i changed was the location of "long String Source.doc" . On the "long string source.doc" file all I did was just pasted the long 255+ character that Im trying to find. Then saved and exited" Then I copied the exact text to replace

Next, i clicked run on the macro on my document and all it did was pop up the "Long String Source.doc" File with that error. Not sure what Im doing wrong. If someone can please help. Heres a screenshot of the code

imgur.com/a/pTK63pu
Imgur: The magic of the Internet
Reply With Quote