Consulting

Results 1 to 3 of 3

Thread: Solved: Delete Column and Row

  1. #1
    VBAX Tutor
    Joined
    Jan 2011
    Posts
    272
    Location

    Solved: Delete Column and Row

    good night people
    I am using excel 2007

    I need a code which delete the column A and column B, column F and G.
    Then delete the row 1 and row 2,6,9.


    Thanks

  2. #2
    VBAX Mentor
    Joined
    Jan 2006
    Posts
    323
    Location
    This is a simple method, I don't know where you're going with it.
    Hope it helps.
    Gary
    [vba]

    'Columns("a").Delete 'individually
    'columns("b").delete

    Columns.Range("A:B").Delete
    Columns.Range("F:G").Delete

    Rows(1).Delete
    Rows(2).Delete
    Rows(6).Delete
    Rows(9).Delete

    [/vba]

  3. #3
    VBAX Tutor
    Joined
    Jan 2011
    Posts
    272
    Location
    It helped me a lot

    thanks

Posting Permissions

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