Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 04-27-2018, 04:10 AM
gmayor's Avatar
gmayor gmayor is offline Need help with userform and radio buttons Windows 10 Need help with userform and radio buttons 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
 

Tags
radio button, vba



Similar Threads
Thread Thread Starter Forum Replies Last Post
Radio Buttons in Word Document in MAC Office 2016 kim88 Word 3 12-19-2016 03:36 PM
Radio buttons in a particular page gets disabled when i scroll down and return back to that page. arnprd Word 0 06-18-2015 10:54 AM
check box issue (problem with radio buttons from web page) Word 2013 cQQlgirl Word 6 03-19-2015 07:23 PM
Need help with userform and radio buttons Performance problem ActiveX radio buttons NobodysPerfect Word VBA 8 05-31-2014 03:51 AM
example of radio buttons in for data entry? derohanes Excel 1 03-05-2011 09:37 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:36 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