R
rhatcher
Im trying to open the Document Stencil from VBA using the following
code, replacing ("basic shapes.vss") with ("Document Stencil".vss"),
which doesnt work. the code as it is works fine. It would be great if
someone could set me strait.
Sub GetStencil()
'If file is not open, open it
On Error Resume Next
'Get a refernce to the stencil object
Set StnObj = Documents("basic shapes.vss")
'the stencil was not opened, open it
If StnObj Is Nothing Then
Set StnObj = Documents.OpenEx("basic shapes.vss", visOpenRO)
End If
End Sub
Also, I want to change one cell in a master on the document stencil. A
snippit of code or some pointers to start with would be great. I have
plenty of references, but Im not finding a way to do this, yet
Thanks
Robert
code, replacing ("basic shapes.vss") with ("Document Stencil".vss"),
which doesnt work. the code as it is works fine. It would be great if
someone could set me strait.
Sub GetStencil()
'If file is not open, open it
On Error Resume Next
'Get a refernce to the stencil object
Set StnObj = Documents("basic shapes.vss")
'the stencil was not opened, open it
If StnObj Is Nothing Then
Set StnObj = Documents.OpenEx("basic shapes.vss", visOpenRO)
End If
End Sub
Also, I want to change one cell in a master on the document stencil. A
snippit of code or some pointers to start with would be great. I have
plenty of references, but Im not finding a way to do this, yet
Thanks
Robert