Problem with Macros and Templates

S

Shoukhat Khan

Hello,

My VB application calls some of the templates created in Word2000 which also
has some macros in it. Ther are stored in a network location to which the
application points to. Everything was working fine untill i upgraded to
Office 2007. Now my application tries to open the template and gives an error
message saying "Sub or Function not defined" and "Microsoft Visual Basic"
written in the title bar. I am using Windows XP SP2. It shows these error
messages multiple times and finally it opens the document, but when i click a
custom made button in the template the same error message comes up.

Can anybody please help me out of this?

Thanks in advance.
 
R

Robert M. Franz (RMF)

Hello Shoukhat

Shoukhat said:
My VB application calls some of the templates created in Word2000 which also
has some macros in it. Ther are stored in a network location to which the
application points to. Everything was working fine untill i upgraded to
Office 2007. Now my application tries to open the template and gives an error
message saying "Sub or Function not defined" and "Microsoft Visual Basic"
written in the title bar. I am using Windows XP SP2. It shows these error
messages multiple times and finally it opens the document, but when i click a
custom made button in the template the same error message comes up.

your best bet is one of the .word.vba groups. Adding the relevant lines
of code where Word throws the error might be a good idea, too. :)

0.2cents
Robert
 

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