Well, you are missing part of a If conditional statement. You have the Else and End if part put the not IF.
That should be something like:
If .Tag = 1 Then
where Tag is set using the Userform command button e.g.
Sub commandbutton1_Click()
Tag = 1
Hide
End If
You have to have docvariable fields in the document to display the text:
{DocVariable varGrpName} etc.
and add
a Fields.Update command.
|