Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 06-22-2019, 07:55 PM
gmayor's Avatar
gmayor gmayor is offline location in word document Windows 10 location in word document Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,143
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

What is the aim of this location? The easiest way to set a location and return to it is to use a pair of macros. One to set a bookmark, the other to select that bookmarked location e.g.

Code:
Sub BMStart()
Selection.Bookmarks.Add ("bmStart")
End Sub

Sub GetStart()
Dim oBM As Bookmark
    For Each oBM In ActiveDocument.Bookmarks
        If oBM.Name = "bmStart" Then
            oBM.Select
            Exit For
        End If
    Next oBM
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default location for the Office Document Cache Server drafts location. dianahbr Office 0 03-02-2018 12:37 PM
location in word document How to have the location (path) of the Word document on the title bar? Jamal NUMAN Word 24 09-06-2017 12:18 PM
Want to use the DateAdd function to type text at a location in word document, using date from CC corriganc Word VBA 10 08-09-2017 08:07 PM
Copy table to another location in the same document Sektor Word VBA 2 03-31-2014 09:28 PM
Displaying the filepath/document location in ribbon MrPahoehoe PowerPoint 1 03-01-2013 06:41 AM

Other Forums: Access Forums

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