How to make word 2007 overlay Outlook exact window size ?

H

hls

What is required to make word app screen match Outlook Active screen size ?
'
Set mWrd = New Word.Application
With mWrd
.Documents.Add
.Documents(1).Envelope.Insert
.WindowState = wdWindowStateMinimize
.Top = .PixelsToPoints(ActiveExplorer.Top)
.Left = .PixelsToPoints(ActiveExplorer.Left)
.Width = .PixelsToPoints(ActiveExplorer.Width)
.Height = .PixelsToPoints(ActiveExplorer.Height)
Debug.Print "AE.Top: " & ActiveExplorer.Top & " (Word.Top: " & .Top
& ")"
Debug.Print "AE.Left: " & ActiveExplorer.Left & " (Word.Left: " &
..Left & ")"
Debug.Print "AE.Width: " & ActiveExplorer.Width & " (Word.Width: " &
..Width & ")"
Debug.Print "AE.Height: " & ActiveExplorer.Height & " (Word.Height:
" & .Height & ")"
.PrintPreview = True
.Visible = True
.WindowState = wdWindowStateNormal
.Activate
End With
 

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