![]() |
|
|
|
#1
|
|||
|
|||
|
Hi,
Do you have a simple macro VBA that wil automatically removed a column or third column? Thanks, netchie |
|
#2
|
||||
|
||||
|
Why do you need a macro, when you can click any where in a column, then use Table Tools>Layout>Delete>Delete Columns? This seems far more flexible than a macro that's restricted to the 3rd column.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#3
|
|||
|
|||
|
Hi macropod,
Thanks for your reply ![]() Yeah I know right? But I'm just wondering how it can be made through macro. |
|
#4
|
||||
|
||||
|
The following macro will delete whatever column(s) the insertion point is in or cells from which are selected (ie it's not restricted to deleting one column at a time.
Code:
Sub Demo()
With Selection
If .Information(wdWithInTable) Then
.Columns.Delete
End If
End With
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#5
|
|||
|
|||
|
Hi macropod,
It worked! Wooo Hoo! Thnaks so much! Netchie |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to remove blank box on top-left corner of table in PPT 2010? | dylansmith | PowerPoint | 3 | 10-18-2012 03:59 AM |
Need VBA For Macro On How To Remove Specific Words
|
netchie | Word VBA | 6 | 08-28-2012 03:37 PM |
Macro to remove MacroButtons
|
ilkks | Word VBA | 3 | 05-22-2011 11:03 PM |
How to remove blank rows from a specified range?
|
Learner7 | Excel | 1 | 04-19-2011 02:45 AM |
Need help on Macro 03- Find text - if text is blank then remove line
|
simpleonline1234 | Word VBA | 1 | 02-25-2011 02:28 AM |