+ Reply to Thread
Results 1 to 7 of 7

Pick Random values from the list to run macro (simulating captcha function)

  1. #1
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Pick Random values from the list to run macro (simulating captcha function)

    Hello,

    I have a file that has a delete data code in it. However, I want to make sure that users do not accidentally run the code and delete the data. Is there a code that can simulate a captcha function? Or a code that can randomly pick from a list, show the random value and in a message box and the user should match the random value before the delete data code can run?

  2. #2
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Pick Random values from the list to run macro (simulating captcha function)

    Or an "Are you sure?" msgbox?

  3. #3
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Pick Random values from the list to run macro (simulating captcha function)

    Quote Originally Posted by kersplash View Post
    Or an "Are you sure?" msgbox?
    Yes I do have that as well. But there is still a possibility that the user will unconsciously press the enter key and all the data will be gone.

  4. #4
    Forum Contributor
    Join Date
    05-13-2009
    Location
    Manila philippines
    MS-Off Ver
    Excel 2010
    Posts
    113

    Re: Pick Random values from the list to run macro (simulating captcha function)

    Anyone please? thanks

  5. #5
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Re: Pick Random values from the list to run macro (simulating captcha function)

    Make them type "Yes" into a input box that asks if they REALLY want to delete it?
    If you want something done right... find a forum and ask an online expert.

    Time flies like an arrow. Fruit flies like a banana.

  6. #6
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,347

    Re: Pick Random values from the list to run macro (simulating captcha function)

    Regardless you could use an input box something like this. Edited to suit of course.
    Please Login or Register  to view this content.

  7. #7
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,028

    Re: Pick Random values from the list to run macro (simulating captcha function)

    Quote Originally Posted by bambino86 View Post
    Anyone please? thanks
    another option:
    Try this:
    Put this code in the beginning of your macro


    Please Login or Register  to view this content.

+ 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] Random Pick from list
    By michael35 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-19-2018, 09:30 AM
  2. Random Pick from list
    By michael35 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-19-2018, 04:21 AM
  3. random pick names from a list
    By jladika in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-06-2011, 05:31 PM
  4. random pick names from the list
    By jinvictor in forum Excel General
    Replies: 1
    Last Post: 06-26-2006, 10:10 AM
  5. Pick a Random name from a list.
    By David M Fritzke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2006, 12:40 PM
  6. [SOLVED] Pick a Random name from a list.
    By David M Fritzke in forum Excel General
    Replies: 8
    Last Post: 06-06-2006, 10:55 AM
  7. Pick a Random name from a list.
    By David M Fritzke in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-06-2006, 10:55 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