View Single Post
 
Old 04-27-2018, 01:09 AM
Fissure Fissure is offline Windows 10 Office 2013
Novice
 
Join Date: Apr 2018
Posts: 2
Fissure is on a distinguished road
Default Need help with userform and radio buttons

Hi there working on a word document and having some issues with some quality of life functions.

The document uses a userform where the user inputs some base data and then the userform fills it into the right areas in the document. There is also some different choices available for the user to check using radio buttons. They each hide certain text depending on the radio button chosen. So far it all works as expected but I am having issues when users reopen the document after saving. The radio buttons are blank and have to be pressed again. This requires the user recheck them again and increases the risk of chosing the wrong stuff or forgetting pressing them.
Now I know this is the way radio buttons work but I am wondering if there is a way to make them be pre selected depending on what text within a certain bookmark is hidden or not in the document.

tried the follwing within userform_Activate ()
With ActiveDocument
If ActiveDocument.Bookmarks("LJSidor1").Range.Font.Hi dden = True Then
Me.LJNejKnapp = True
Else
Me.LJJaKnapp = True
End If
End With

Where "LJSidor1" is one of the bookmarks that hides a certain part of the document depending on the choice of the "LJNejKnapp" button or "LJJaKnapp" button.

Is it possible to do something like this or am I wasting my time, is there any other way to accomplish the same thing?


Any help would be appriciated !

//john
Reply With Quote