Re: no toolbar in word ??
Set wrdapp = CreateObject("word.application")
wrdapp.Documents.Add 'you forgot this line
wrdapp.Documents.Open filepath
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
Re: no toolbar in word ??
The line
wrdApp.Documents.Add
don't seems to change anything...
I really don't know what it is...
Make it with rocker style \w/
Re: no toolbar in word ??
Dim filePath as string
filePath = "d:\gestioneerrori.doc" 'your pathfilename.doc
set wrdApp = CreateObject("word.application")
wrdApp.Documents.Add "c:\program files\Microsoft Office\Modelli\Normal.dot" 'search for your path to Normal.dot
wrdApp.Documents.Open filePath
wrdApp.Application.ScreenUpdating = true
wrdApp.Application.WindowState = wdWindowStateMaximize
wrdApp.Application.Visible = true
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater
Re: no toolbar in word ??
huumm the only thing I have is the scroll bars and rulers at the top.
I think I will use the shell function instead by using word.application.path to find the .exe
Thanks for help :o)
Make it with rocker style \w/
Re: no toolbar in word ??
Even this seems to work
(at least on my machine)
Dim filePath as string
filePath = "d:\gestioneerrori.doc"
set wrdApp = CreateObject("word.application")
wrdApp.Documents.Open filePath
wrdApp.Application.ScreenUpdating = true
'make it visible, first
wrdApp.Application.Visible = true
'then maximize
wrdApp.Application.WindowState = wdWindowStateMaximize
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, TCartwright, Bruno Paris, Dr_Micahel
and all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
The Rater