Thread: [Solved] VBA IF Statement Help
View Single Post
 
Old 03-19-2024, 08:27 AM
Shelley Lou Shelley Lou is offline Windows 10 Office 2016
Competent Performer
 
Join Date: Dec 2020
Posts: 173
Shelley Lou is on a distinguished road
Default VBA IF Statement Help

Greg, wow, this code is something else, thank you so much.

Aaaah yes, I am getting an error 5941 member does not exist on this line of code, so I will look into why this is happening:

Code:
CompoundCRs2 ActiveDocument.StoryRanges(wdFootnotesStory)
I've just seen the comment in the code about the non-breaking space and space together before the manual cross ref, I think that could have just been my dodgy typing when I was putting the small document together for you. I will look into updating the code to include if there is a non-breaking space between the string words and manual cross refs.

That is a very good idea to break the code up into sections as the original highlight code was getting a bit out of control and very hard to see where I was going wrong so I will definitely split that up into smaller chunks.

A massive thank you Greg for helping me.
Reply With Quote