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 / January 2008

Tip: Looking for answers? Try searching our database.

Document map zoom

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
PeterH - 20 Jan 2008 03:43 GMT
n Word 2007, I can zoom the document map by pressing SHIFT-F6 and then using
the zoom bar at the bottom of the Word window.

However, the macro recorder will not record this action.
How can the action be done programmatically, i.e. in VBA ?
Stefan Blom - 23 Jan 2008 11:52 GMT
There might be a better way, but this macro seems to work:

Sub ZoomDocMap()
On Error GoTo errhandler
SendKeys "{ESC}", True
ActiveDocument.ActiveWindow.DocumentMap = True
SendKeys "+{F6}", True
ActiveWindow.View.Zoom = 200  'Specify the desired zoom
SendKeys "{ESC}", True

errhandler:
Exit Sub

End Sub

Signature

Stefan Blom
Microsoft Word MVP

>n Word 2007, I can zoom the document map by pressing SHIFT-F6 and then
>using
> the zoom bar at the bottom of the Word window.
>
> However, the macro recorder will not record this action.
> How can the action be done programmatically, i.e. in VBA ?
 
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.