ERROR MESSAGE 2147221463

C

cindy

I am trying to create a macro in publisher and I have followed the
instructions in the lesson. but each time I run the macro I get this error
message
Runtime error 2147221463 (80040029) Publisher can not perform this action
because code is running in the active document. to ope or create a second
doc, create a new instance of publisher."

Please help.
 
E

Ed Bennett

cindy said:
I am trying to create a macro in publisher and I have followed the
instructions in the lesson. but each time I run the macro I get this
error message

Which instructions are you following?
What lesson are you talking about?

You cannot write VBA code in a Publisher document macro to create a new
instance of Publisher. It isn't allowed. You have to use a full
programming language that supports COM or COM interop (e.g. Visual Basic,
Visual Basic .NET, Visual C++, C#, etc.) to be able to create new instances
of Publisher.
 
C

cindy

I am using Programming Publisher 2003 made easy. off the microsoft.com web
site. It shows me how to create a newsletter using a macro. but after
following the instructions I get this error. all the other lessons that I did
worked except this one.
 
E

Ed Bennett

cindy said:
I am using Programming Publisher 2003 made easy. off the
microsoft.com web site. It shows me how to create a newsletter using
a macro. but after following the instructions I get this error. all
the other lessons that I did worked except this one.

Which lesson of in the series is this?
 
E

Ed Bennett

cindy said:

I have read through the lesson, and it looks like the code in it has been
written with using the full-blown Visual Basic in mind, rather than the
Visual Basic for Applications present in Publisher.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top