+ Reply to Thread
Results 1 to 3 of 3

Warning message before inserting or deleting rows or columns

  1. #1
    Forum Contributor
    Join Date
    02-10-2012
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Excel 2021
    Posts
    114

    Warning message before inserting or deleting rows or columns

    Hi,

    I have the following code to stop me from inserting or deleting rows or columns:

    Please Login or Register  to view this content.
    Is there a way I can change this so that I have the option to insert/delete? For example change the message box to ask if I really want to?

    Thanks in advance

  2. #2
    Forum Contributor
    Join Date
    02-10-2012
    Location
    Newcastle upon Tyne
    MS-Off Ver
    Excel 2021
    Posts
    114

    Re: Warning message before inserting or deleting rows or columns

    A step closer but it still carrys out the action??

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Warning message before inserting or deleting rows or columns

    Very close. The one key thing to mention is that it should not be placed under the workbook_sheet change event and instead the the worksheet_change event

    Please Login or Register  to view this content.
    If you are happy with my response please click the * in the lower left of my post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Warning Message + Clear Column Option when deleting a cell in Row 2
    By RedSummer in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 05-17-2015, 09:21 PM
  2. Replies: 9
    Last Post: 09-24-2014, 09:14 AM
  3. Excel crashing when inserting / deleting new columns
    By benjuk in forum Excel General
    Replies: 0
    Last Post: 07-21-2014, 07:07 AM
  4. Need Help-Error When Deleting or Inserting Rows
    By krisels in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-11-2012, 04:52 PM
  5. Inserting and Deleting Rows & 3-D Summing
    By markvdh in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-02-2011, 04:57 AM
  6. Deleting and inserting rows
    By blurtoad in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-02-2007, 04:54 AM
  7. Excel links & inserting/deleting rows
    By jd in forum Excel General
    Replies: 2
    Last Post: 02-04-2006, 04:25 PM

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