View Single Post
 
Old 04-27-2018, 04:10 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
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

Try the following

Code:
Private Sub UserForm_Activate()
Dim oBM As Bookmark
    With ActiveDocument
        If .Bookmarks.Exists("LJSidor1") = True Then
            Set oBM = .Bookmarks("LJSidor1")
            If oBM.Range.Font.Hidden = True Then
                MsgBox "hidden"
                LJNejKnapp.value = True
            Else
                MsgBox "not hidden"
                LJJaKnapp.value = True
            End If
        Else
            MsgBox "missing"
            LJNejKnapp.value = False
            LJJaKnapp.value = False
        End If
    End With
End Sub
I have put in some message boxes so you can see what is reported.
__________________
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