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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You're very welcome.
ASKER