Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
I need to delete all variables in variable overview window without using neither SHIFT nor CTRL. By simply clicking button or event it should be deleted all variables in variable overview window. Can anyone help me out?
Thanks in advance
Gopi.P
Try with a macro:
sub cleanVariables
Set VariableDel = ActiveDocument.GetVariableDescriptions
for i = 0 to VariableDel.Count - 1
set tempVar = VariableDel.Item(i)
tempVarName = tempVar.Name
ActiveDocument.RemoveVariable tempVarName
next
end sub
Hi Vincenza,
Thanks for concern-reply. Still im struggling with the issue and attached my screenshot for your reference. Attached "QV Version" screenshot for whether macro can be used or not. Again thanks in advance...
Hi Gopi,
this is a macro, you can't add it in the script.
CTRL+M and write the code I sent you in the Edit Module windows:
I request you to take backup first and then use. Sometimes, Clients need back up. So, Don't forget to back up with all variables and then reset using the Code which she provided