Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 07-07-2020, 05:41 AM
MyUserName123 MyUserName123 is offline Macro to Mark Text with Index Codes Windows 10 Macro to Mark Text with Index Codes Office 2019
Novice
Macro to Mark Text with Index Codes
 
Join Date: Jul 2020
Posts: 10
MyUserName123 is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
Reboot the PC and try the code I posted again. Word VBA has a bad habit of holding on to error conditions, especially with regard to endless loops as in the case of your original code.

Hi, thanks for your response. I rebooted the computer and I just tried it again now and it did the same thing. It's kind of hard to explain what it's doing with seeing it, but it inserts one XE code with the text entry and puts the curly brackets in red. Then it inserts another XE code directly after that, also with the curly brackets in red but with XE XE and the text entry, then another one directly after that with XE XE XE and the text entry, etc. It seems to keep inserting XE codes one right after another but the number of XEs increases with each code it inserts.

Maybe it's just one of those weird things. I haven't done much VBA in a while, not that I was ever very good at it, of course, but I do remember seeing some very strange things that just didn't seem to make any sense.
Reply With Quote
 

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro to Mark Text with Index Codes Macro for mark index entry for every word in a document? Jay Jay Word VBA 5 08-13-2015 03:44 PM
Hyperlinking from the Index to the Origin Mark Phil H Word 2 08-30-2013 04:03 AM
Index Addition Leaves Hidden Codes On SQLUSA Word 3 07-23-2012 02:58 AM
Options of Index Mark Entry smaria Word 1 04-22-2010 05:48 AM
Macro to mark non-coloured/non-highlighted text as hidden PeterB Word 0 10-28-2009 07:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft