sorry
Matthew
"DeanH" <De...@discussions.microsoft.com> wrote in message
news:F10ED613-DAA2-45E3...@microsoft.com...
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...
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
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...