Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-15-2015, 08:34 PM
RegAudit RegAudit is offline Bookmark Not Showing Bookmark Windows 7 32bit Bookmark Not Showing Bookmark Office 2010 32bit
Novice
Bookmark Not Showing Bookmark
 
Join Date: Mar 2015
Posts: 5
RegAudit is on a distinguished road
Default Bookmark Not Showing Bookmark


I am using Word 2010. I inserted bookmarks in a document. I made the bookmarks visible by by checking the appropriate box in the Word set-up.

The bookmarks look like this: I

I want the book marks to reflect the names I am giving them.
For example if I name a bookmark "alpha," I would like to see "alpha" in the document next to the text I am bookmarking.

How can I do this?
Reply With Quote
  #2  
Old 03-16-2015, 05:40 AM
gmayor's Avatar
gmayor gmayor is offline Bookmark Not Showing Bookmark Windows 7 64bit Bookmark Not Showing Bookmark Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,103
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 of
Default

The short answer is no, but you could use a macro to add hidden text at the bookmarked location. How useful that wopuld be in practice, I can't say but

Code:
Sub LabelBookmarks()
Dim oBM As Bookmark
Dim oRng As Range
    For Each oBM In ActiveDocument.Bookmarks
        Set oRng = oBM.Range
        oRng.Collapse 1
        oRng.Text = oBM.Name
        oRng.Font.Hidden = True
        oRng.End = oBM.End + 1
        oRng.Collapse 0
    Next oBM
    ActiveDocument.ActiveWindow.View.ShowHiddenText = True
lbl_Exit:
Set oBM = Nothing
Set oRng = Nothing
    Exit Sub
End Sub
will do that.

Rather more useful would be http://www.gmayor.com/BookmarkandVariableEditor.htm which will list the bookmarks and their contents and provide easy access to them.
__________________
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
  #3  
Old 03-16-2015, 10:12 AM
RegAudit RegAudit is offline Bookmark Not Showing Bookmark Windows 7 32bit Bookmark Not Showing Bookmark Office 2010 32bit
Novice
Bookmark Not Showing Bookmark
 
Join Date: Mar 2015
Posts: 5
RegAudit is on a distinguished road
Default

It would be useful because I could see the names of the bookmarks in the document.
Reply With Quote
  #4  
Old 03-16-2015, 10:14 AM
RegAudit RegAudit is offline Bookmark Not Showing Bookmark Windows 7 32bit Bookmark Not Showing Bookmark Office 2010 32bit
Novice
Bookmark Not Showing Bookmark
 
Join Date: Mar 2015
Posts: 5
RegAudit is on a distinguished road
Default

I was looking for my Normal file template and could not find it. I revealed all hidden the files. It used to be in a folder called Templates, under User/Roaming...or something like that. I believe that's where my macro were stored.
Reply With Quote
  #5  
Old 03-16-2015, 08:40 PM
Guessed's Avatar
Guessed Guessed is offline Bookmark Not Showing Bookmark Windows 7 32bit Bookmark Not Showing Bookmark Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,975
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

I would add the bookmark name by using the commenting function. IMO, that is much more user friendly. The code to do that is as follows.
Code:
Sub LabelBookmarks()
  Dim oBM As Bookmark
  For Each oBM In ActiveDocument.Bookmarks
    ActiveDocument.Comments.Add oBM.Range, "Bookmark: " & oBM.Name
  Next oBM

lbl_Exit:
  Set oBM = Nothing
  Exit Sub
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #6  
Old 03-16-2015, 11:06 PM
gmayor's Avatar
gmayor gmayor is offline Bookmark Not Showing Bookmark Windows 7 64bit Bookmark Not Showing Bookmark Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,103
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 of
Default

Quote:
Originally Posted by RegAudit View Post
I was looking for my Normal file template and could not find it. I revealed all hidden the files. It used to be in a folder called Templates, under User/Roaming...or something like that. I believe that's where my macro were stored.
If you have not changed the default location enter or copy
%appdata%\Microsoft\Templates
to the address window of Windows Explorer and you will be taken to the folder that contains the default template - which for Word 2007 on is normal.dotm. Note that this folder is normally hidden.
__________________
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
  #7  
Old 03-16-2015, 11:08 PM
gmayor's Avatar
gmayor gmayor is offline Bookmark Not Showing Bookmark Windows 7 64bit Bookmark Not Showing Bookmark Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,103
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 of
Default

Quote:
Originally Posted by Guessed View Post
I would add the bookmark name by using the commenting function. IMO, that is much more user friendly.
I am inclined to agree
__________________
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
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
vba to go to next bookmark megatronixs Word VBA 2 06-08-2014 09:53 PM
Bookmark Not Showing Bookmark VBA to insert Bookmark rockwellsba Word VBA 2 05-31-2011 01:07 AM
Bookmark Classification DrDoom Word 0 06-29-2010 07:08 AM
Bookmark to another document spqr Word 3 06-26-2009 04:51 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:30 PM.


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