Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 05-06-2019, 06:09 PM
eduzs eduzs is offline Toggle between pagecolumns / pagefit view Windows 10 Toggle between pagecolumns / pagefit view Office 2010 32bit
Expert
Toggle between pagecolumns / pagefit view
 
Join Date: May 2017
Posts: 266
eduzs is on a distinguished road
Default

Solved! The problem was that the page columns / rows are not reset when the pagefit/bestfit adjustment is set.
So It is necessary to set it back again to 1 when toggling to PageFitBestFIt
Quote:
Sub Toggle_View_Zoom()

If ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit Then
With ActiveWindow.ActivePane.View.Zoom
.PageColumns = 5
.PageRows = 2
End With
Else
With ActiveWindow.ActivePane.View.Zoom
.PageColumns = 1
.PageRows = 1
End With
ActiveWindow.ActivePane.View.Zoom.PageFit = wdPageFitBestFit
End If

End Sub
__________________
Backup your original file before doing any modification.
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Toggle between pagecolumns / pagefit view Toggle A4 and Custom size gloub Word VBA 4 01-20-2019 05:00 PM
Toggle between pagecolumns / pagefit view Toggle Button Squibble Word VBA 2 06-11-2014 05:36 PM
Toggle between pagecolumns / pagefit view Revision toggle without changing revision view? New Daddy Word VBA 6 04-15-2014 05:59 PM
Toggle between pagecolumns / pagefit view Macro to toggle outline level Jennifer Murphy Word VBA 3 01-22-2014 11:22 PM
Toggle updates dbugosh Office 2 12-16-2010 07:54 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:37 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