View Single Post
  #6   Report Post  
Posted to microsoft.public.word.newusers
DeanH DeanH is offline
external usenet poster
 
Posts: 1,862
Default Very simple "change case" macro - why won't it work?

Table of Contents, Captions for Table/Figure numbers, and cross references
are all Fields to name a few.
If you never have these features, then you maybe OK, but in the future this
may cause you some problems trying to refresh these without F9.
Hope this helps
DeanH

"Bert Coules" wrote:

Graham Mayor wrote:

Copy and paste the code you have created into a reply to this thread so we
can see what you have done...


OK. I rerecorded the keystrokes and when I checked under Macros/Edit I
found what seem to be *two* relevant entries:

**************************

Sub Macro26()
'
' Macro26 Macro
' Macro recorded 04/09/2008 by Bert Coules
'
Selection.Range.Case = wdUpperCase
End Sub
Sub Macro24()
'
' Macro24 Macro
' Macro recorded 04/09/2008 by Bert Coules
'
Selection.Range.Case = wdUpperCase
End Sub

**************************

I suppose Macro 24 is an earlier version of my attempt; I would have
expected it to have been replaced by the later one (26, presumably?) but
it's still there. I freely admnit that I have only the haziest idea of how
macros work in Word - why is there no reference in the listing to the
assigned key, for instance?

I would urge you to use a different keyboard shortcut from F9, which has
the important function of updating fields.


I make no use (at least knowingly) of fields, so I thought reusing f9 (as I
already reuse f10, 11, and 12) didn't really matter.

Bert