Results 1 to 5 of 5
  1. #1
    Bronze Lounger
    Join Date
    Sep 2007
    Posts
    1,203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Is there a straight forward vba command for deleting multiple column selections? N:R, K:L, G:I, E, A:C

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    Range("A:C,G:I,K:L,N:R").Delete

  3. #3
    Bronze Lounger
    Join Date
    Sep 2007
    Posts
    1,203
    Thanks
    0
    Thanked 0 Times in 0 Posts
    [quote name='HansV' post='778556' date='05-Jun-2009 23:52']Range("A:C,G:I,K:L,N:R").Delete[/quote]

    Thanks, that sure beats my overkill. A general question, I know that you have mentioned before that 'most' things do not need to be selected to be able to manipulate them. Is there a place I can find what 'does' need to be selected, in general, so that I can rid myself of my unnecessary selects. Thanks.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    I don't know of a web page or similar where you could find that. But it's really rare in Excel to have to select cells in code in order to do something with them.

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts
    I've split this series of posts off from the topic "Application.Workbooks.Count" since it's about a completely unrelated question.

Posting Permissions

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