-
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
-
Maybe you could try using Shell or Shellexecute instead ?
-
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.
-
but what is the difference between Shell and ShellExecute ??
-
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
-
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