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 Columns Content


Hello,
I would like to clear columns on my Excel worksheet using VBA. I tried
some simple code and it only deleted some of the columns. Here is what
I tried.

Range("AF2:BI2").Select
Selection.EntireColumn.Delete


Thanks for any help you can provide.


--
Lizz45ie
------------------------------------------------------------------------
Lizz45ie's Profile: http://www.excelforum.com/member.php...o&userid=23410
View this thread: http://www.excelforum.com/showthread...hreadid=481924

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Clear Columns Content

Range("AF2:BI2").ClearContents

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Lizz45ie" wrote in
message ...

Hello,
I would like to clear columns on my Excel worksheet using VBA. I tried
some simple code and it only deleted some of the columns. Here is what
I tried.

Range("AF2:BI2").Select
Selection.EntireColumn.Delete


Thanks for any help you can provide.


--
Lizz45ie
------------------------------------------------------------------------
Lizz45ie's Profile:

http://www.excelforum.com/member.php...o&userid=23410
View this thread: http://www.excelforum.com/showthread...hreadid=481924



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
How to clear up useless content within worksheet? Eric Excel Discussion (Misc queries) 1 May 31st 10 04:39 AM
Clear Cell Content Query captedgar Excel Discussion (Misc queries) 1 February 22nd 10 07:36 PM
How to clear content from unprotected Field Amean1 Excel Worksheet Functions 1 November 11th 06 07:50 PM
Clear Cells Content No_Spam Excel Discussion (Misc queries) 2 August 20th 06 04:01 PM
Clear the content of a worksheet using VBA Shawshank Excel Programming 3 January 13th 04 03:47 PM


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