+ Reply to Thread
Results 1 to 4 of 4

Display alert messge when a column is inserted in a range

  1. #1
    Forum Contributor
    Join Date
    09-16-2014
    Location
    Hyderabad
    MS-Off Ver
    MS Office 2021
    Posts
    347

    Display alert messge when a column is inserted in a range

    Hi all,


    I have a range A1:IA100. I would like a prompt message like " please follow the syntax" when I insert a column between "A" and "IA".

    Is is possible?

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Display alert messge when a column is inserted in a range

    Excel does not raise any events other than the normal Change when columns or rows are inserted/deleted.

    The easiest way to do this is to define a named range somewhere outside the range you want to check, and then in the Change event, check that named range is stil in the column/row you defined it in.

  3. #3
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: Display alert messge when a column is inserted in a range

    Hi,

    Here is an example of some code that may work. It uses the Worksheet Change Event and checks to see if the value in BA1 has changed, it if has, it alerts. It will change if columns are added/deleted in the range you are describing.

    Please Login or Register  to view this content.
    Thanks,

    Dan

  4. #4
    Forum Contributor
    Join Date
    09-16-2014
    Location
    Hyderabad
    MS-Off Ver
    MS Office 2021
    Posts
    347

    Re: Display alert messge when a column is inserted in a range

    @ djbomaha


    Thanks, that helped.

+ 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] Error messge
    By joyrider in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2015, 12:25 AM
  2. disable display alert on refresh?
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-13-2014, 11:59 PM
  3. Application Display Alert
    By rjayaram.rj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2014, 12:48 PM
  4. Disabling the display alert.
    By walid66 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2012, 04:39 PM
  5. ScreenUpdating & Display Alert problems
    By carsto in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-19-2008, 03:42 PM
  6. [SOLVED] Display Alert
    By FrankJIN in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-09-2005, 11:35 PM
  7. [SOLVED] How to show messge box text in Excell work sheet
    By vishu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-14-2005, 07:05 AM

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