Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default clear column


hi,
If I want to clear two specific columns on the spreadsheet. How can I
go about doing it? I only know how to clear the entire sheet, which
is:

ws.Cells.ClearContents

what if I just want to delete column A and B? please let me now.
Thanks.


--
owl527
------------------------------------------------------------------------
owl527's Profile: http://www.excelforum.com/member.php...o&userid=20916
View this thread: http://www.excelforum.com/showthread...hreadid=488609

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default clear column

ws.Columns("A:B").ClearContents
Regards,
Stefi


owl527 ezt *rta:


hi,
If I want to clear two specific columns on the spreadsheet. How can I
go about doing it? I only know how to clear the entire sheet, which
is:

ws.Cells.ClearContents

what if I just want to delete column A and B? please let me now.
Thanks.


--
owl527
------------------------------------------------------------------------
owl527's Profile: http://www.excelforum.com/member.php...o&userid=20916
View this thread: http://www.excelforum.com/showthread...hreadid=488609


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 75
Default clear column

hint: this will clear sixth column in active spreadsheet:

Columns(6).ClearContents

Reply
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
clear cell based on text in opposing column [email protected] Excel Worksheet Functions 2 July 14th 08 04:09 AM
Can you clear a column of numbers that contain a formula? Bob Excel Discussion (Misc queries) 3 April 3rd 08 06:35 PM
Clear a column when true Jeff[_9_] New Users to Excel 1 November 2nd 07 01:30 AM
How do I clear a column of data without clearing specific cells? EllenSwarts Excel Discussion (Misc queries) 2 April 5th 06 05:07 PM
How do I clear a column of data without clearing the formulas? EllenSwarts Excel Discussion (Misc queries) 2 March 11th 05 02:09 PM


All times are GMT +1. The time now is 05:59 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"