Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #19  
Old 11-11-2013, 10:44 PM
macropod's Avatar
macropod macropod is offline How to center a page horizontally? Windows 7 32bit How to center a page horizontally? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,523
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Your first and second posts were 5 months ago. To say:
Quote:
You are missing my very first question. I do not want to just centre the page, but I'm trying zoom in to the level equivalent to "Fit Visible" (Ctrl+3) in adobe reader
is quite untrue. Look at what you posted:
Quote:
I am trying to zoom in and then center the page by the following code but it doesn't work:

ActiveDocument.ActiveWindow.View.Zoom.Percentage = 250
ActiveWindow.ActivePane.HorizontalPercentScrolled = 50

Any idea?
This has nothing to do with any notion of 'fit to screen'.

Sure you mentioned '"Fit Visible" (Ctrl+3) in adobe reader' in your second post, but that contradicts your first post. Furthermore, yesterday, you asked:
Quote:
How can I relate this code to the size of the screen instead of a fix number
That is what I responded to, not some self-contradictory postings from 5 months ago. You have now specified your requirements in three mutually-exclusive ways. If you cannot specify clearly and consistently what you want, don't expect any answers offered to match those requirements.
Quote:
I understand that there is no "Fit Visible" in word, but I want to have a macro to do kind of similar.
I have already told you what the nearest equivalents are that Word offers - 'wdPageFitBestFit' or 'wdPageFitTextFit'. Choose for yourself whichever best meets your needs.

Do remember that this forum is run entirely by volunteers, none of whom can be expected to invest a huge amount of effort into writing a macro that emulates Acrobat's "Fit Visible" function on a wide range of hardware. For starters, that presupposes the person doing the coding knows the intricacies of how Acrobat treats different kinds of content. And, even if one did, the different algorithms used by Word and Adobe can even lead to the same zoom factors giving magnifications, depending on the hardware used (see, for example, https://www.msofficeforums.com/word/...ord-100-a.html).
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Centering text horizontally in powerpoint Microsoftenquirer1000 PowerPoint 0 10-28-2012 03:38 PM
How to Center One Line Vertically on Blank Page SQLUSA Word 1 08-29-2012 08:14 PM
Word doc that scroll horizontally Golfer4588 Word 1 03-22-2012 03:55 PM
How to center a page horizontally? Microsoft Word 2010 - Aligning table horizontally SWEngineer Word Tables 4 07-20-2011 01:32 AM
Labels will only print in center of page jferr Word 0 04-02-2010 09:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft