+ Reply to Thread
Results 1 to 4 of 4

Macro pops up when certain value is entered

Hybrid View

  1. #1
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Macro pops up when certain value is entered

    Would a validation rule not suffice ? (rather than VBA)

    Using your sample file

    Step 1: create a Named Range re: Checklist

    Name: _DVCheckList
    RefersTo: =Checklist!$A:$A
    (you could use a Dynamic Construct pending other requirements)
    Step 2: apply a Data Validation rule to Database sheet

    Highlight C2:Dn (where n is last row you wish to apply the logic to) and apply a Custom Data Validation rule of:

    =1-COUNTIF(_DVChecklist,$C2)
    Set Error Alert message as necessary - change Style from "Stop" to "Warning" etc if duplicates are still to be permitted.

  2. #2
    Registered User
    Join Date
    10-07-2010
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    3

    Talking Re: Macro pops up when certain value is entered

    Simplicity really is the key, isn't it?

    I had a feeling Validation could be enough. I used the steps you have provided and it had proved quite useful. I just had a bit of trouble with the Countif function working with Custom in the allow field so I used Between instead. Worked like a charm!

    Thanks for your help DonkeyOte. You guys are amazing!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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