Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-25-2013, 12:01 PM
netchie netchie is offline Macro to remove blank column Windows XP Macro to remove blank column Office 2007
Novice
Macro to remove blank column
 
Join Date: Jun 2011
Posts: 24
netchie is on a distinguished road
Default Macro to remove blank column

Hi,



Do you have a simple macro VBA that wil automatically removed a column or third column?

Thanks,
netchie
Reply With Quote
  #2  
Old 02-25-2013, 05:47 PM
macropod's Avatar
macropod macropod is offline Macro to remove blank column Windows 7 64bit Macro to remove blank column Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #3  
Old 03-04-2013, 01:25 PM
netchie netchie is offline Macro to remove blank column Windows XP Macro to remove blank column Office 2007
Novice
Macro to remove blank column
 
Join Date: Jun 2011
Posts: 24
netchie is on a distinguished road
Default

Hi macropod,

Thanks for your reply

Yeah I know right? But I'm just wondering how it can be made through macro.
Reply With Quote
  #4  
Old 03-04-2013, 01:45 PM
macropod's Avatar
macropod macropod is offline Macro to remove blank column Windows 7 64bit Macro to remove blank column Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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]
Reply With Quote
  #5  
Old 03-14-2013, 02:22 PM
netchie netchie is offline Macro to remove blank column Windows XP Macro to remove blank column Office 2007
Novice
Macro to remove blank column
 
Join Date: Jun 2011
Posts: 24
netchie is on a distinguished road
Default

Hi macropod,

It worked! Wooo Hoo! Thnaks so much!

Netchie
Reply With Quote
Reply



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
Macro to remove blank column Need VBA For Macro On How To Remove Specific Words netchie Word VBA 6 08-28-2012 03:37 PM
Macro to remove blank column Macro to remove MacroButtons ilkks Word VBA 3 05-22-2011 11:03 PM
Macro to remove blank column How to remove blank rows from a specified range? Learner7 Excel 1 04-19-2011 02:45 AM
Macro to remove blank column Need help on Macro 03- Find text - if text is blank then remove line simpleonline1234 Word VBA 1 02-25-2011 02:28 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:04 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft