+ Reply to Thread
Results 1 to 5 of 5

delete row or column depending on which is selected

  1. #1
    Registered User
    Join Date
    11-09-2006
    Posts
    65

    delete row or column depending on which is selected

    I used to have a button in my quick access toolbar and when IT upgraded me to 2010 I lost it.

    There was actually 2 buttons.

    1) if I have a column or columns selected it would delete those columns and shift left. If I had a row or rows selected then it would delete those rows and shift up.

    2) this 2nd button was exactly the opposite. if a row was selected, it would insert another row above it. if a column was selected it would insert a column next to it.

    Very simple stuff. I thought it would be in my personal.xlsb file, but I couldnt find it. I couldnt find anything that matches in the "all commands" list either.

    Does anyone have some code that matches my description or know of a function in excel that already exists?
    Did I write that code 8 years ago and completely forget what it was?

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: delete row or column depending on which is selected

    Hi surfengine,

    Maybe:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    11-09-2006
    Posts
    65

    Re: delete row or column depending on which is selected

    thanks, that is of course working perfectly. I swore it was a built in excel command though, but I'll just use yours. Thanks.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: delete row or column depending on which is selected

    You're welcome!

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: delete row or column depending on which is selected

    @ surfengine

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1