D
Dave
For a Visio file containing multiple pages, I want to automate the
drawing of a text box at a given location on each page, and the
insertion of a field (Insert > Field > Page > Info > Name) in that text
box. The idea is that the resultant macro would repeat the insertion of
that text box / field on the rest of the pages.
So, I record a macro to automate the above by recording performance of
these steps on the first page of the file.
Problem occurs in running the macro on the subsequent pages. I get a
run-time error [-2032465766(86db089a)], "Reqeusted operation is
presently disabled". When I open the debugger, the highlighted line of
code is:
vsoCharacters3.AddFieldEx visFCatPage, visFCodePageName,
visFmtStrNormal, 1033, 0
I'm assuming that Visio is getting stuck trying to identify the text
box objects on the subsequent pages after it has inserted them, since
it is looking for the specific text box inserted on the initial page.
That's just my guess.
How can I instruct Visio to recognize these objects? I'm betting there
is some routine that can be written, or way of tweaking the macro, in
order to get this working.
For the record, no, I don't believe this is a macro security issue,
since I've got the security setting on 'low'.
TIA,
Dave
drawing of a text box at a given location on each page, and the
insertion of a field (Insert > Field > Page > Info > Name) in that text
box. The idea is that the resultant macro would repeat the insertion of
that text box / field on the rest of the pages.
So, I record a macro to automate the above by recording performance of
these steps on the first page of the file.
Problem occurs in running the macro on the subsequent pages. I get a
run-time error [-2032465766(86db089a)], "Reqeusted operation is
presently disabled". When I open the debugger, the highlighted line of
code is:
vsoCharacters3.AddFieldEx visFCatPage, visFCodePageName,
visFmtStrNormal, 1033, 0
I'm assuming that Visio is getting stuck trying to identify the text
box objects on the subsequent pages after it has inserted them, since
it is looking for the specific text box inserted on the initial page.
That's just my guess.
How can I instruct Visio to recognize these objects? I'm betting there
is some routine that can be written, or way of tweaking the macro, in
order to get this working.
For the record, no, I don't believe this is a macro security issue,
since I've got the security setting on 'low'.
TIA,
Dave