WordBasic.Call to vba

  • Thread starter charlie.planetxsolutions
  • Start date
C

charlie.planetxsolutions

i have the following wordbasic converted code that i believe i need to
re-write in straight vba:

WordBasic.Call "CreateDocument.Main"

CreateDocument is acutally a module that is part of a dot file that is
downloaded by previous statements in the macro. so, i'm having problems with
doing stuff like this:

Call CreateDocument.Main

as this won't resolve.

what is the syntax of the call statement for resolving at runtime?


thanks in advance.
 
J

Jean-Guy Marcil

charlie.planetxsolutions was telling us:
charlie.planetxsolutions nous racontait que :
i have the following wordbasic converted code that i believe i need to
re-write in straight vba:

WordBasic.Call "CreateDocument.Main"

CreateDocument is acutally a module that is part of a dot file that is
downloaded by previous statements in the macro. so, i'm having
problems with doing stuff like this:

Call CreateDocument.Main

as this won't resolve.

what is the syntax of the call statement for resolving at runtime?

Have you tried using the project name as well?

Call MyProject.CreateDocument.Main
 
C

charlie.planetxsolutions

this document gets downloaded... so its going to have a project name like
TemplateProject.

also, if i assign it a project name then doesn't the macro just get copied
to the Normal.dot? thats my understanding and not something i want to
happen...
 
J

Jean-Guy Marcil

charlie.planetxsolutions was telling us:
charlie.planetxsolutions nous racontait que :
this document gets downloaded... so its going to have a project name
like TemplateProject.

So?
Just name the project as you want.
also, if i assign it a project name then doesn't the macro just get
copied to the Normal.dot? thats my understanding and not something i
want to happen...

I am not sure I understand what you are referring to here.
 

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