Bottom Alignment in Table Cell (Macro Recorder Right Click)

M

MIG

I am still using Word 97 (better than Word 2000, PC can't handle Word
XP).

I wanted to quickly record myself aligning the text in a table cell to
the bottom (so that I could do a key stroke in many cells).

The only way I know of to do this is to right click on the cell and
choose from the menu that comes up. I can't find it in any other
formatting or table menus.

However, when I use the macro recorder, I can't right click.

Does anyone know either how else to get the option to align text to
the bottom of the cell or how to right click while recording a macro?
 
P

Phill. W

MIG said:
The only way I know of to do this is to right click on the cell and
choose from the menu that comes up.

Here's some code to do Centre-Centre; you can tweak it to suit your
needs.

Selection.SelectCell
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.Cells.VerticalAlignment = wdCellAlignVerticalCenter
However, when I use the macro recorder, I can't right click.

But (if you've got one) you /can/ press the keyboards button that looks
like a popup menu (mine's just to left of the right-hand Ctrl key).
Pops up the same context menu, but without the right-clicking that, as
you say, the Macro Recorder swallows.

HTH,
Phill W.
 
M

MIG

Phill. W said:
Here's some code to do Centre-Centre; you can tweak it to suit your
needs.

Selection.SelectCell
Selection.ParagraphFormat.Alignment = wdAlignParagraphCenter
Selection.Cells.VerticalAlignment = wdCellAlignVerticalCenter


But (if you've got one) you /can/ press the keyboards button that looks
like a popup menu (mine's just to left of the right-hand Ctrl key).
Pops up the same context menu, but without the right-clicking that, as
you say, the Macro Recorder swallows.

HTH,
Phill W.

Aha you're right, thanks (why did I not try the button before?).

Selection.Cells.VerticalAlignment = wdCellAlignVerticalBottom

I still find it odd that there's something you can get on right click
that doesn't seem to be findable in any of the other menus, however
long-winded. I wonder if that was something that was forgotten in
Word 97?
 
T

Tammy

If you show your Tables and Borders toolbar you can then record your
macro using the cell alignment button to align the text in your cell
(not sure of the correct button name ...)

Cheers,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top