When the user hits the clear button variable values are clearing.
I am using the below code in the macro
Sub t1
val = ActiveDocument.Variables("vCust").GetContent.String
I don't want to clear the variable value if the user hits the Clear button..
Advance thanks for your help and support.
ActiveDocument.Fields("CustomerNo").Select "*"&val&"*",true
end sub
vCust is the varaible