Link to home
Start Free TrialLog in
Avatar of Robertsa
Robertsa

asked on

Word 97 VBA - inserting text

Hi,
I have the following situation which I need assistance with:

I have an option button and if it is not selected, I want to be able to insert a blank space at a bookmark in a document (so information can be manually entered in pen at a later date - so in other words a string of blank characters). I have the following code but it is not working.

Private Sub optEmployerSpons_Empty()
If optEmployerSpons.Value = False Then
Selection.GoTo What:=wdGoToBookmark, Name:="bkDlg_MemberDOB"
Selection.InsertAfter Text:="              "
End If
End Sub

Any assitance would be appreciated.

Thank you

ASKER CERTIFIED SOLUTION
Avatar of RichW
RichW
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Robertsa
Robertsa

ASKER

Thank you
You're very welcome.