Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2007

Tip: Looking for answers? Try searching our database.

Creating word doc with FILLIN field hides all toolbars

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barry Gilbert - 27 Jun 2007 20:44 GMT
I have some code in a VB6 app that opens a Word doc based on a template. It
looks like this:

Dim wordApp As Word.Application
Set wordApp = CreateObject("Word.Application")
wordApp.Documents.Add Template:=(strPathToTemplate), NewTemplate:=False
wordApp.Application.Visible=True

When I create a doc manually, everything works as expected. However, when I
open it from this code, the Word window opens with no toolbars visible.

Any ideas would be helpful.
Ed - 28 Jun 2007 18:38 GMT
Hi Barry,

We used to get that problem when automating Word from VB6 to perform a mail
merge.

The way I think you can get around it is to make Word visible before
creating the document.

(Not strictly relevant here but we also had a problem with at least one
version of Word - 2000 I think - where after Word was automated the toolbars
would be visible but not active. We got around this by activating the app -
e.g. wordApp.Activate.)

Regards.

Ed

> I have some code in a VB6 app that opens a Word doc based on a template. It
> looks like this:
[quoted text clipped - 8 lines]
>
> Any ideas would be helpful.
Barry Gilbert - 28 Jun 2007 18:52 GMT
Ed,

Thanks very much for your suggestion! Making the app visible first did the
trick.

Regards,
Barry

> Hi Barry,
>
[quoted text clipped - 25 lines]
> >
> > Any ideas would be helpful.
Ed - 28 Jun 2007 18:56 GMT
Hi Barry,

You're welcome.

Cheers.

Ed

> Ed,
>
[quoted text clipped - 33 lines]
> > >
> > > Any ideas would be helpful.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.