Results 1 to 2 of 2

Thread: Delte a specific column and does not delete the top row

  1. #1
    Banned
    Join Date
    May 2013
    Posts
    17
    Rep Power
    0

    Delte a specific column and does not delete the top row

    Hello,

    I would like ask help from you guys. I have encountered a problem that I cannot delete a specific column only and also does not delete the top most row of the active sheet. I wanted to delete all data in columns A:C and K:W but I have tried so many codes I cannot pursue it. Please help. Here's the code. All characters in Bold format the problem that I encounter.



    Sub Start()
    '
    ' Start Macro
    '

    '
    Sheets("SEGREGATION").Select
    Cells.Select
    Selection.ClearContents
    Sheets("UNCLASSIFIED").Select
    Cells.Select
    Range("A13").Activate
    Selection.ClearContents

    Sheets("CLASSIFIED").Activate
    Columns("A:C").Activate
    Columns("K:W").Activate
    ActiveSheets.UsedRange.Offset(1, 0).ClearContents
    Sheets("INSTRUCTIONS").Select


    Thank you in advance.

    -Jeff

  2. #2
    Senior Member
    Join Date
    Jun 2012
    Posts
    337
    Rep Power
    13
    Can you please use codetags !!
    Code:
    Sheets("SEGREGATION").usedrange.ClearContents
    Sheets("UNCLASSIFIED").Range("A13").ClearContents
    intersect(Sheets("CLASSIFIED").usedrange,range("A:C,K:W").Offset(1, 0).ClearContents
    

Similar Threads

  1. Delete Entire Row For All Empty Cells In Column
    By johnreid7477 in forum Excel Help
    Replies: 4
    Last Post: 06-15-2013, 05:50 AM
  2. Replies: 4
    Last Post: 03-22-2013, 01:47 PM
  3. Replies: 3
    Last Post: 12-05-2012, 09:51 PM
  4. Delete unwanted rows & column
    By sanjeevi888 in forum Excel Help
    Replies: 1
    Last Post: 09-30-2012, 08:52 AM
  5. Delete Names In A Specific Worksheet
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 08-14-2011, 02:38 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •