D
dv
Hi
I have created a template that saves the filled in word form at a different
location. I am saving it as a word doc. I have embedded few command buttons
in the template. How do I delete these buttons when they are saving the
filled in forms.
I tried using vb script
For Each o In ActiveDocument.InlineShapes
MsgBox (LEFormat.Object.Name)
If LEFormat.Object.Name = "Clear" Then
o.Delete
End If
Next
it goes to o.Delete command but does not delete the button.
I checked the name as you can see with the Msgbox, it shows the name Clear.
It goes there but does nothing. It does not give any error too.
Am I missing something here?
This is the first time I am doing this so please reply as if to a rookie.
Any help is appreciated.
Thanks
I have created a template that saves the filled in word form at a different
location. I am saving it as a word doc. I have embedded few command buttons
in the template. How do I delete these buttons when they are saving the
filled in forms.
I tried using vb script
For Each o In ActiveDocument.InlineShapes
MsgBox (LEFormat.Object.Name)
If LEFormat.Object.Name = "Clear" Then
o.Delete
End If
Next
it goes to o.Delete command but does not delete the button.
I checked the name as you can see with the Msgbox, it shows the name Clear.
It goes there but does nothing. It does not give any error too.
Am I missing something here?
This is the first time I am doing this so please reply as if to a rookie.
Any help is appreciated.
Thanks