Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cross-Reference dialog box - change the default settings

550 views
Skip to first unread message

DeanH

unread,
Sep 25, 2009, 3:55:02 AM9/25/09
to

Word 2003 SP2 on XP.
Is is possible to change the default settings of the "Insert Reference to"
options from "Entire Caption" to "Only label and number"?
Obviously this only applies to the Figure and Table reference types.
Many thanks
DeanH

Matthew

unread,
Sep 28, 2009, 2:31:42 PM9/28/09
to

I am pretty sure you can not, as after looking at the options and playing
around it looks like when you go back into the menu it reverts back to the
item of the list and there is no place that I could find to change this,

sorry
Matthew

"DeanH" <De...@discussions.microsoft.com> wrote in message
news:F10ED613-DAA2-45E3...@microsoft.com...

DeanH

unread,
Sep 29, 2009, 2:50:01 AM9/29/09
to
Matthew, thanks for the reply, that is the behaviour that is annoying me ;-)
I am hoping that someone may come up with an intercepting script that can
control these Figure/Table commands.
Thanks anyway
Hope this helps
DeanH

macropod

unread,
Sep 29, 2009, 5:32:44 AM9/29/09
to
Hi Dean,

You could use a macro for each type of reference:
Sub InsertFigureRef()
Dim I As Integer
With Dialogs(wdDialogInsertCrossReference)
For I = 1 To 8
SendKeys "{DOWN}"
Next
SendKeys "{UP}{TAB}:"
For I = 1 To 5
SendKeys "{UP}"
Next
SendKeys "{DOWN}{TAB}{TAB} %v": .Show
End With
End Sub

Sub InsertTableRef()
Dim I As Integer
With Dialogs(wdDialogInsertCrossReference)
For I = 1 To 8
SendKeys "{DOWN}"
Next
SendKeys "{TAB}:"
For I = 1 To 5
SendKeys "{UP}"
Next
SendKeys "{DOWN}{TAB}{TAB} %v": .Show
End With
End Sub

The down & up loops are there to ensure you end up with the "Only label and number" selection, regardless of whatever was last
selected, plus hyperlinking by default. Each macro could be attached to a button that you could add to one of the toolnars.

--
Cheers
macropod
[Microsoft MVP - Word]


"DeanH" <De...@discussions.microsoft.com> wrote in message news:3997FBA8-1648-4616...@microsoft.com...

DeanH

unread,
Oct 9, 2009, 3:49:01 AM10/9/09
to
Macropod, many thanks.
Apologies for the delay in feedback, but spot on.
I have also created one for the Heading Text to Heading Number. Easy when
you know how ;-)
DeanH

koendekkers

unread,
Oct 15, 2009, 3:08:36 AM10/15/09
to
I found this thread because I'm also struggling with the subject that the topicstarter raised. When I use the solution of Dean in Word 2007 my Cross Reference menu stops at Footnote; it does not go down enough to get to Figure. Dean, have you got any solution for this? Thanks in advance,

Koen

DeanH wrote:

Macropod, many thanks.Apologies for the delay in feedback, but spot on.I have
09-Oct-09

Macropod, many thanks.
Apologies for the delay in feedback, but spot on.
I have also created one for the Heading Text to Heading Number. Easy when
you know how ;-)
DeanH


"macropod" wrote:

Previous Posts In This Thread:

EggHeadCafe - Software Developer Portal of Choice
Host Winforms App in IE from your web server
http://www.eggheadcafe.com/tutorials/aspnet/c40df7ba-b0c1-4de6-802b-78bbd653d184/host-winforms-app-in-ie-f.aspx

macropod

unread,
Oct 15, 2009, 8:01:30 PM10/15/09
to
Hi koen,

It seems Word 2007 doesn't play nicely with Sendkeys - which has always been the least perferred method of doing things, precisely
because it can have timing issues and problems with changes to the way dialogues work. AFAIK, Sendkeys is the only way of
programatically accessing the Insert CrossReference Dialog settings and, if that doesn't work, you're stuck with a manual solution.

--
Cheers
macropod
[Microsoft MVP - Word]


"koen dekkers" wrote in message news:20091015384...@gmail.com...

Message has been deleted

Jeff

unread,
Aug 1, 2013, 11:56:56 PM8/1/13
to


Great macro!

I adapted your function for the Headings like DeanH as well. Here is for people who could find it useful.

Sub SectionRef()
Dim I As Integer
With Dialogs(wdDialogInsertCrossReference)
For I = 1 To 8
SendKeys "{UP}"
Next
SendKeys "{DOWN}{TAB}:"
For I = 1 To 6
SendKeys "{UP}"
Next
SendKeys "{DOWN}{DOWN}{TAB}{TAB}{TAB} %v": .Show
End With
End Sub
0 new messages