LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default How to erase a column VBA

Thanx a lot Gary, i guess it was trivial, but helps me a lot


"Gary''s Student" wrote:

Sub demo()
ActiveCell.EntireColumn.Delete
End Sub

--
Gary''s Student - gsnu200734


"Jepane" wrote:

Hi,

Im trying to erase a column via VBA, this column is variable and depends on
the active cell,
Im trying this but obviously its not working:

ActiveSheet.Columns(ActiveCell).Delete

Any kinda help will be very appreciated

Thx

Jepane

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Erase duplicate rows juanpablo Excel Discussion (Misc queries) 1 April 11th 07 11:46 PM
Erase Key in Legend Carlo Charts and Charting in Excel 5 August 30th 06 05:55 PM
I want to relocate a column, save the figures, and erase formula Gwen Excel Worksheet Functions 1 April 6th 06 12:06 AM
Erase Duplicates John Excel Worksheet Functions 1 December 7th 05 05:16 PM
How can I erase all but every 87th row in Excell? mlp36 Excel Worksheet Functions 1 May 27th 05 10:30 PM


All times are GMT +1. The time now is 04:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"