Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-19-2011, 03:12 AM
b0x4it b0x4it is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2010 32bit
Advanced Beginner
Highlight and put bookmark on the closest field to the cursor
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default Highlight and put bookmark on the closest field to the cursor

I found myself selecting a number like 2 that is a caption of figure or table and putting bookmark on it a lot of times. I am wondering if I can have a code that make me able to just put the cursor in the line that the caption is located that the code finds the closest field to the cursor position, then select it and then run the bookmark command that shows the window waiting for entering the bookmark name? it looks like I am asking a lot for a macro, does't it?
Reply With Quote
  #2  
Old 05-19-2011, 07:02 PM
b0x4it b0x4it is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2010 32bit
Advanced Beginner
Highlight and put bookmark on the closest field to the cursor
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

What if I just want to find the field in the current paragraph. Is it possible please?
Reply With Quote
  #3  
Old 05-19-2011, 07:24 PM
macropod's Avatar
macropod macropod is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi b0x4it,

Why do you want to add a bookmark to a Caption? You can already cross-reference them via Insert|Cross-reference.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #4  
Old 05-19-2011, 07:31 PM
b0x4it b0x4it is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2010 32bit
Advanced Beginner
Highlight and put bookmark on the closest field to the cursor
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

For two reasons:
1. if I have 100 equations and I want to cross reference them, then I have to first jump to the equation and find out what is the number of its caption e.g. 37 or 59 and then again get back to where I was writing. If I put a bookmark on the caption, then I can put a name i.e. force_relation and I can find it in the list of all bookmarks quickly.

2. I found that if I want to use cross referencing for two or more captions like:
... as shown in Figures 1 and 2 ...

then I have change the field code for those captions to { REF _Ref218925266 \# 0 \h }. Since I am not sure which of the caption would be called in the remaining of my text, then I have to change them all to get rid of the text before and after captions (label and caption).

so I prefer to put bookmark on all captions and specify a name to them all. If I am doing wrong please let me know what is the more logical way to do it. and if what I am doing is right, please specify how I can find a field in the current line or paragraph or table and put a bookmark on it.
Reply With Quote
  #5  
Old 05-19-2011, 07:57 PM
macropod's Avatar
macropod macropod is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Quote:
Originally Posted by b0x4it View Post
For two reasons:
1. if I have 100 equations and I want to cross reference them, then I have to first jump to the equation and find out what is the number of its caption e.g. 37 or 59 and then again get back to where I was writing. If I put a bookmark on the caption, then I can put a name i.e. force_relation and I can find it in the list of all bookmarks quickly.
Not so. When you go to Insert|Cross-reference > Figure, for example, the caption's full text is displayed. From that you should be able to work out which caption to cross-reference. That is certainly more informative than simply trying to reference a bookmark that tells you nothing of the caption's particulars.

Quote:
2. I found that if I want to use cross referencing for two or more captions like:
... as shown in Figures 1 and 2 ...

then I have change the field code for those captions to { REF _Ref218925266 \# 0 \h }. Since I am not sure which of the caption would be called in the remaining of my text, then I have to change them all to get rid of the text before and after captions (label and caption).
That does not make sense to me. The only time you might need to do isolate the # is when you're referencing multiple captions at a time. You can also do that via {QUOTE 'Caption' \* Arabic} or {QUOTE 'Caption' \# 0}, where 'Caption' is the caption cross-reference and the field brace pairs (ie '{ }') are created via Ctrl-F9.

I believe the '{ REF _Ref218925266 \# 0 \h }' is derived from: http://sbarnhill.mvps.org/wordfaqs/combinexrefs.htm
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #6  
Old 05-19-2011, 08:20 PM
b0x4it b0x4it is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2010 32bit
Advanced Beginner
Highlight and put bookmark on the closest field to the cursor
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

You are right! Thank you so much for explaining this to me. It saves me lots of time. I really appreciate all you helps.

What is the main different between {QUOTE 'Caption' \* Arabic} or {QUOTE 'Caption' \# 0} ? what is that 0 for? I know that * defines type of numbering, but what is # for please?

When I change them to {REF _Ref293660174 \h \# 0} it shows 01, do I have to put \# 0 before \h?

When I use {QUOTE _Ref293660174 \# 0} it just shows me _Ref293660174, did you type QUOTE instead of REF incorrectly?
Reply With Quote
  #7  
Old 05-19-2011, 08:31 PM
macropod's Avatar
macropod macropod is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi b0x4it,

There is no material difference between {QUOTE 'Caption' \* Arabic} and {QUOTE 'Caption' \# 0}.

The \* and \# are field switches. The \* gives access to a range of predefined options (eg \* Arabic, \* Roman) and the \# specifies a numeric output.

If you're using a cross-refernce like {REF _Ref293660174 \h}, the \# 0 must go before the \h (ie {REF _Ref293660174 \# 0 \h}. The \h switch is a hyperlink switch and enables you to click on the cross-reference and go to its source.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #8  
Old 05-19-2011, 08:34 PM
b0x4it b0x4it is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2010 32bit
Advanced Beginner
Highlight and put bookmark on the closest field to the cursor
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

When I use {QUOTE _Ref293660174 \# 0} it just shows me _Ref293660174, did you type QUOTE instead of REF incorrectly? Does QUOTE work for captions too?

one last question please
what is that 0 after \# for? can it be any number or it has to be just 0?
Reply With Quote
  #9  
Old 05-19-2011, 10:39 PM
macropod's Avatar
macropod macropod is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi b0x4it,

I didn't say to use {QUOTE _Ref293660174 \# 0}; I suggested {QUOTE 'Caption' \# 0}. If you've got the field code display toggled on, that would be equivalent to:
{QUOTE {REF _Ref293660174 \h} \# 0}
where the field brace pairs (ie '{ }') are created via Ctrl-F9.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #10  
Old 05-19-2011, 11:01 PM
b0x4it b0x4it is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2010 32bit
Advanced Beginner
Highlight and put bookmark on the closest field to the cursor
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

It works, thank you, but I think it is much easier to just add \# 0 before \h in the REF field.

I was not thinking clearly, because the problem with finding the right equation captions to make a cross-reference still exist, because there no label and caption for equations captions that are basically just numbers. If there are lots of equations in a long document, then it would be too hard to find the right equation to put cross-reference for it, except I put a bookmark and make a name for each of them. Do you have any other genius suggestion please?
Reply With Quote
  #11  
Old 05-19-2011, 11:12 PM
macropod's Avatar
macropod macropod is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2007
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi b0x4it,

That's OK - I was just letting you know there are other ways of dealing with the problem.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
  #12  
Old 05-19-2011, 11:15 PM
b0x4it b0x4it is offline Highlight and put bookmark on the closest field to the cursor Windows 7 32bit Highlight and put bookmark on the closest field to the cursor Office 2010 32bit
Advanced Beginner
Highlight and put bookmark on the closest field to the cursor
 
Join Date: May 2011
Posts: 95
b0x4it is on a distinguished road
Default

So if I want to have a name instead of just the numbers in the list of equation captions, the only way is to put a bookmark with a specific name of the equation caption. Is there any other way of putting a name for equation caption, without changing the equation number or adding label to it?
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Highlight and put bookmark on the closest field to the cursor 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
Multi Line Bookmark streng Word 3 07-13-2009 07:54 AM
Bookmark to another document spqr Word 3 06-26-2009 04:51 AM
find - reading highlight - highlight all / highlight doesn't stick when saved bobk544 Word 3 04-15-2009 03:31 PM

Other Forums: Access Forums

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