+ Reply to Thread
Results 1 to 8 of 8

how to make only message appear number of time before message does not show

  1. #1
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    how to make only message appear number of time before message does not show

    hi everyone thanks for you help in advance

    ill try and explains what i'm trying to do best i can ,

    i have a piece of vba code that works perfectly if the users enter 133 value in any cell in column c will get message box " have you check asset crib" with yes and no answers what i would like to is add some way if 133 is entered 10 times in any cell in column c to skip the messages and sub completely hope you all understand here my code not sure how to add this i thinking a count function maybe:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: how to make only message appear number of time before message does not show

    Hi sspreyer,

    the code below does what you're describing.
    I also added a line that prevents the code from crashing if you select more than 1 cell to change.

    Please Login or Register  to view this content.
    Please click the * below if this helps
    Please click the * below if this helps

  3. #3
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: how to make only message appear number of time before message does not show

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  4. #4
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to make only message appear number of time before message does not show

    Quote Originally Posted by JasperD View Post
    Hi sspreyer,

    the code below does what you're describing.
    I also added a line that prevents the code from crashing if you select more than 1 cell to change.

    Please Login or Register  to view this content.
    Please click the * below if this helps
    thanks your legend only thing is if i wanted to add more then 133 for example 122 ,111,123
    what best way to do this

    cheer

    shane

  5. #5
    Forum Expert JasperD's Avatar
    Join Date
    05-07-2013
    Location
    Netherlands
    MS-Off Ver
    Excel 2016
    Posts
    1,393

    Re: how to make only message appear number of time before message does not show

    In that case, I would do it like this :

    Please Login or Register  to view this content.
    Please click the * below if this helps

  6. #6
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to make only message appear number of time before message does not show

    Quote Originally Posted by JasperD View Post
    In that case, I would do it like this :

    Please Login or Register  to view this content.
    Please click the * below if this helps
    thanks again legend !!!!!

    shane

  7. #7
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to make only message appear number of time before message does not show

    Quote Originally Posted by JasperD View Post
    In that case, I would do it like this :

    Please Login or Register  to view this content.
    Please click the * below if this helps
    hi got another question how could i make this so 133 show message 10 times and 122 show message 6 times and 111 show message 3 times

    thanks again sorry for be a pain

    shane

  8. #8
    Forum Contributor sspreyer's Avatar
    Join Date
    07-05-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    180

    Re: how to make only message appear number of time before message does not show

    bump ! bump

+ 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] How to pop up a warning message before any Excel automatic update link reminder message
    By billj in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-01-2013, 10:41 AM
  2. Extracting mail message(outlook) table in the message body
    By andywsw in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2012, 10:14 PM
  3. Replacing run time error message with a different message
    By penny in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-14-2009, 10:51 AM
  4. [SOLVED] replace VBA run-time error message with custom message
    By BEEJAY in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 07-14-2006, 11:05 AM
  5. [SOLVED] Intercept/replace standard 'cell protected' message with my own message?
    By KR in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2006, 10:35 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