Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2019, 08:33 AM
Bamenny Bamenny is offline Windows 10 Office 2019
Novice
 
Join Date: May 2019
Posts: 1
Bamenny is on a distinguished road
Default Can VBA change pages in Microsoft Word's “Read Mode” Layout?

I'm trying to change pages while Microsoft Word is in "Read Mode"* by using a VBA code, and I can't seem to find any function that allows that.



(* Please notice that I'm talking about the "Read Mode" layout that you can change with the bottom-right icons in word, and not the "Read Only" mode that you sometimes get when you open a document from an unknown source)

In "Print Layout" it is simple since I can use something like -

Code:
Selection.GoTo What:=wdGoToBookmark, Name:="LastReadingPoint"
But It won't work while I'm in "Read Mode".

None of these work:

Code:
ActiveDocument.GoTo What:=wdGoToPage, which:=wdGoToAbsolute, Count:=1
ActiveDocument.Range.GoTo What:=wdGoToPage, which:=wdGoToAbsolute, Count:=1
Selection.GoTo What:=wdGoToBookmark, Name:="LastReadingPoint"
ActiveDocument.Range.GoTo What:=wdGoToBookmark, Name:="LastReadingPoint"
ActiveDocument.Range.GoToNext wdGoToPage
ActiveDocument.GoTo What:=wdGoToBookmark, Name:="LastReadingPoint"
(LastReadingPoint is a bookmark I've added to the text)

Any ideas or hacks?
Reply With Quote
  #2  
Old 05-16-2019, 03:20 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,375
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

Cross-posted at: https://stackoverflow.com/questions/...ad-mode-layout
For cross-posting etiquette, please read: http://www.excelguru.ca/content.php?184
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply

Tags
vba, vba code



Similar Threads
Thread Thread Starter Forum Replies Last Post
Normal Layout replaced by Read Mode Word 2019 Jim8080 Word 4 02-09-2019 01:36 PM
How to default word in read only mode cgonnoud Word 1 04-17-2017 05:25 PM
Word 2013 .docx opens as read-only compatability Mode Wd0000000.doc roadmaster64 Word 1 09-08-2016 11:13 AM
Microsoft Office Word Online Text Space is Different in Reading Mode from When it's in Editing Mode darkjanggo Word 1 12-15-2015 05:06 PM
outlook word attachments only opening in read only compataibility mode dawnnolan54 Word 1 04-13-2015 12:06 PM

Other Forums: Access Forums

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