Hi again,
I have found and modified the following code to suit my needs but the "Unload Me" keeps frustrating me. Don't really know whether or not I need it either.
It appears to work OK without it but as it was there intially am wondering why???
Appreciate any help with this I am more curious than....
I have found and modified the following code to suit my needs but the "Unload Me" keeps frustrating me. Don't really know whether or not I need it either.
It appears to work OK without it but as it was there intially am wondering why???
Appreciate any help with this I am more curious than....
Code:
Dim strAddItem As String
strAddItem = ProdProcEntry.Text
If strAddItem = "" Then
MsgBox "Enter something intelligent, Please!!"
FocusTextBox
Exit Sub
Else
Dim aDoc As Document
Set aDoc = ActiveDocument
aDoc.FormFields("DropdownProdProc").Result = strAddItem
Set aDoc = Nothing
End If
[b] Unload Me[/b]
End Sub