![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2009
Posts: 13
OS: Win xp
|
Hi
i want the macros to skip inserting THE before TABLE. is it possible? Thanks in advance ![]() Sally Sample data is UNO ROCK ROLLING TABLE ROLL RAMS Code is Sub TheBeforeAcronym() Dim myRange As Range Dim orng As Range Dim rslt As VbMsgBoxResult Set myRange = ActiveDocument.Range With myRange.FInd .Text = "<([A-Z]{3,})>" .MatchWildcards = True .Wrap = wdFindStop .Forward = True While .Execute myRange.Select Set orng = myRange.Duplicate orng.Move wdCharacter, -5 orng.MoveEnd wdCharacter, 4 If Not orng.Text = "the " Then rslt = Msgbox(Prompt:="Add 'the' before this acronym?", Buttons:=vbYesNoCancel) If rslt = vbCancel Then Exit Sub If rslt = vbYes Then Selection.InsertBefore "the " myRange.Collapse wdCollapseEnd End If End If myRange.Collapse wdCollapseEnd Wend End With Set myRange = Nothing End Sub |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
![]() |
| Thread Tools | |
|
|