|
-
Sep 5th, 2001, 07:00 AM
#1
Thread Starter
Addicted Member
No toolbar in word ????
My app is opening a specific word file with the object "word.application". But , I'm not able to make the word's toolbar visible...
here:s my code
Code:
Set wrdApp = CreateObject("word.application")
wrdApp.Documents.Open("FilePath")
wrdApp.Application.ScreenUpdating = True
wrdApp.Application.WindowState = wdWindowStateMaximize
wrdApp.Application.Visible = True
Set wrdApp = Nothing
-
Sep 5th, 2001, 07:16 AM
#2
Retired VBF Adm1nistrator
Maybe you could try using Shell or Shellexecute instead ?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Sep 5th, 2001, 07:23 AM
#3
Thread Starter
Addicted Member
I could,
I was just wondering if it was a way to do it like this because my app will be implemented into several machines, and word isn't always in the same directory.
-
Sep 5th, 2001, 07:25 AM
#4
Thread Starter
Addicted Member
but what is the difference between Shell and ShellExecute ??
-
Sep 5th, 2001, 07:32 AM
#5
Retired VBF Adm1nistrator
Well to get the path I believe you can use this code or something similar.
And with ShellExecute, you can execute a given filename, and windows should open up the appropriate application for it
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Apr 3rd, 2003, 04:07 PM
#6
New Member
If you are using Word97 then it is due to a bug. Solution to this problem is very simple
Move the statement that sets the Visible property above the statement that sets the WindowState property
Reference:
http://support.microsoft.com/default...b;en-us;176866
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|