Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Apr 2002
    Redditch, Worcestershire, England
    Thanked 22 Times in 21 Posts

    Event handling - column deletion (Excel 2000/2003)

    Is there an event (hopefully cancellable) that fires when someone deletes (or inserts) a column in a worksheet?

    I need to stop someone mucking up a macro I have that expects columns in the order I have set them, but I can't impose full-blown protection on the structure since I need to allow the user to make various other changes in the file!

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 31 Times in 31 Posts

    Re: Event handling - column deletion (Excel 2000/2003)

    The Worksheet_Change event occurs when the user inserts or deletes a column, but it fires after the action has been completed, without an indication of what happened.

    In Excel 2002 and later, you can specify in detail what you want to allow/forbid in the Protect Sheet dialog - you could allow everything except Insert columns and Delete columns. Excel 2000, however, doesn't have this detailed dialog.

Posting Permissions

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