![]() |
|
#1
|
|||
|
|||
![]()
To those of you who are more at home in using ranges ("Home on the Range", sorry for the pun), how do you do the following tasks:
1. Select (and work with) multiple columns in a Word table? For example, select and delete columns 3-5 of a 6-column table. 2. Move columns? For example, move column 4 before column 2. And if you are tempted to refer me to some good introduction on using range objects - please succumb! "Where seldom is heard a discouraging word!" Many thanks. |
#2
|
||||
|
||||
![]()
Hi kjworduser,
I've been away and didn't see your post. Here's one of many possible approaches to deleting a column: Code:
Sub Demo() With ActiveDocument.Tables(1) While .Columns.Count > 3 .Columns(3).Delete Wend End With End Sub Code:
Sub Demo() With ActiveDocument.Tables(1) .Columns(4).Select Selection.Cut .Columns(2).Select Selection.Paste End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
jsb73 | Word VBA | 6 | 08-14-2012 07:35 PM |
![]() |
table_column | Word Tables | 1 | 07-02-2012 05:55 PM |
![]() |
tinfanide | Excel Programming | 2 | 06-09-2012 10:19 AM |
![]() |
mzimmers | Excel | 3 | 08-23-2010 08:20 AM |
![]() |
galiwock | Excel | 1 | 05-12-2010 09:02 AM |