View Single Post
  #6   Report Post  
Posted to microsoft.public.word.newusers
Klaus Linke Klaus Linke is offline
external usenet poster
 
Posts: 413
Default right-click paragraph missing inside table

"Terry Farrell" wrote:
That's an option that was destroyed in Word 2007. You'll have to use the
Paragraph dialog by clicking on the launch arrow in the Paragraph Group on
the Home Ribbon.


It should still be possible to add/remove stuff on the context menus with a
macro, though I haven't tested in Word 2007.

Say to add the "Paragraph..." control to the "Table Text" context menu:

CommandBars("Table Text").Controls.Add ID:=779

And to remove it again:

Dim myCB As CommandBar
Set myCB = CommandBars("Table Text")
Dim myCBC As CommandBarControl

For Each myCBC In myCB.Controls
If myCBC.ID = 779 Then
myCBC.Delete
End If
Next

You can retrieve the needed ID (here 779) looking it up on some toolbar or
menu where you know the command is found (or where you have temporarily
placed it):
? CommandBars("Format").Controls(2).Caption,
CommandBars("Format").Controls(2).ID

Or you might look it up on some lists available from Microsoft or from the
web (... though I don't have a link handy).
The names of the context menus (here "Table Text") can also be hard to
figure out.

Klaus