Reply
 
Thread Tools Display Modes
  #1   Report Post  
mully
 
Posts: n/a
Default Vertical Alignment

Hi All

I have a table that consists of 12- Columns and 65- Rows it is an Excel
sheet that I Copy and Paste Special as Formatted Text (RTF) in to Word -- is
there a macro about that on clicking a new added button to the Toolbar --
that would automatically Vertically Align (Centre) all the Text and Numbers
in their respective cells.

Any help much appreciated

Cheers ---- Mully
  #2   Report Post  
Jay Freedman
 
Posts: n/a
Default

On Mon, 26 Sep 2005 07:56:07 -0700, "mully"
wrote:

Hi All

I have a table that consists of 12- Columns and 65- Rows it is an Excel
sheet that I Copy and Paste Special as Formatted Text (RTF) in to Word -- is
there a macro about that on clicking a new added button to the Toolbar --
that would automatically Vertically Align (Centre) all the Text and Numbers
in their respective cells.

Any help much appreciated

Cheers ---- Mully


You don't really need a macro. You can just select the whole table, go
to Table Table Properties Cell, and click the Center button under
"Vertical Alignment".

If you really, really want a macro on a one-click button, use this:

Sub TableVertCenter()
If Selection.Information(wdWithInTable) Then
Selection.Tables(1).Range.Cells.VerticalAlignment _
= wdCellAlignVerticalCenter
End If
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
  #3   Report Post  
Suzanne S. Barnhill
 
Posts: n/a
Default

And if, like me, you've added "Vertical alignment" to every table-related
shortcut menu, you can do it with a right-click. g

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"Jay Freedman" wrote in message
...
On Mon, 26 Sep 2005 07:56:07 -0700, "mully"
wrote:

Hi All

I have a table that consists of 12- Columns and 65- Rows it is an Excel
sheet that I Copy and Paste Special as Formatted Text (RTF) in to Word --

is
there a macro about that on clicking a new added button to the Toolbar --
that would automatically Vertically Align (Centre) all the Text and

Numbers
in their respective cells.

Any help much appreciated

Cheers ---- Mully


You don't really need a macro. You can just select the whole table, go
to Table Table Properties Cell, and click the Center button under
"Vertical Alignment".

If you really, really want a macro on a one-click button, use this:

Sub TableVertCenter()
If Selection.Information(wdWithInTable) Then
Selection.Tables(1).Range.Cells.VerticalAlignment _
= wdCellAlignVerticalCenter
End If
End Sub

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
vertical alignment cell Kelly Tables 1 July 28th 05 08:46 PM
Word 2003 vertical alignment of text to a fixed spot on the page? Visual Velvet Page Layout 1 March 24th 05 07:28 PM
Vertical alignment of addresses Jason E. Mailmerge 1 December 11th 04 08:21 AM
vertical text alignment in a table Sean S. Tables 4 November 27th 04 10:51 PM
Can I change the vertical alignment of text in a text box? Fien Page Layout 2 November 25th 04 03:47 PM


All times are GMT +1. The time now is 09:10 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"