View Single Post
 
Old 06-29-2017, 04:14 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Word Perfect uses macros in a different way from Word, but you can do much the same sorts of things. e.g. to show the bookmark dialog

Code:
Sub ShowBkMkDialog()
    Dialogs(wdDialogInsertBookmark).Show
End Sub
but it is just as easy to click the Bookmark button on the Insert tab, and you may find http://www.gmayor.com/BookmarkandVariableEditor.htm even more useful.

For the parentheses
Code:
Sub ParensTextCaps()
Dim oRng As Range
    Set oRng = ActiveDocument.Range
    With oRng.Find
        Do While .Execute(FindText:="\(*\)", MatchWildcards:=True)
            oRng.Case = wdUpperCase
            oRng.Collapse 0
        Loop
    End With
lbl_Exit:
    Set oRng = Nothing
    Exit Sub
End Sub
See http://www.gmayor.com/installing_macro.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote