LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 852
Default Clear some columns but not all columns and keep headers in all columns

Using this select case only as a means to explain what I want some code to do. Actual code to be whatever is most efficient.

Case has the column Header and the column letter is not part of the header name, I put it in there for reference only, real header name is like... Answer Sports?

Case Else are the target columns to clear, keeping header for ALL columns.

Thanks,
Howard

From column A to column O on Sheet3...

Select Case columnHeading
Case "Answer Movie? C", "Answer Sports? F", "Answer Geography?
I", "Answer Math? L", "Answer Art? O"
'Do nothing
Case Else
'ClearContents in columns (A B D E G H J K M N) row 2 on down to variable end
End Select
 
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 do I make headers for columns in which their are 6 columns? jobo Excel Worksheet Functions 3 January 16th 10 06:32 PM
How do I slant the headers of the columns? Filly Excel Worksheet Functions 2 April 15th 08 06:41 PM
Line up headers and columns Georgea Excel Discussion (Misc queries) 0 January 6th 08 07:00 PM
Clear columns or Drap Columns Display 007[_2_] Excel Programming 0 July 22nd 06 06:40 PM
copy over just columns and headers lbierer Setting up and Configuration of Excel 1 July 14th 06 08:52 PM


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