+ Reply to Thread
Results 1 to 5 of 5

Msg Prompt if a row in Column contains unique value

  1. #1
    Registered User
    Join Date
    02-26-2013
    Location
    Riverside
    MS-Off Ver
    Excel 2010
    Posts
    8

    Msg Prompt if a row in Column contains unique value

    Hey There -

    Currently trying to program a type of product questionnaire. I need excel to recognize if a cell in column "F" is populated with a code lets say "384", that excel ask the user "Is the product black?" and change the value in row "G" if the user clicks yes.

    So far i've been able to program the latter part, but I'm having trouble writing the code needed for excel to recognize the value in column "F". I need this to apply to ALL cells in Column "F" rather a specific cell (i.e. "F1")

    Here's the snippet of the code I'm currently working with.

    Please Login or Register  to view this content.
    Last edited by thekidLegion; 10-16-2013 at 02:19 PM.

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Msg Prompt if a row in Column contains unique value

    Hello thekidLegion,

    Why don't you just use the Code below?;

    Please Login or Register  to view this content.
    Regards
    Last edited by Winon; 10-16-2013 at 03:29 PM.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Registered User
    Join Date
    02-26-2013
    Location
    Riverside
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Msg Prompt if a row in Column contains unique value

    Hi Winon -

    Although the code I've already written works almost-perfectly, you have to click on the cell in column "F" for the message box to prompt.

    However, i'd like the message box to prompt auto-magically upon the value being inputted into this cell.

    How my worksheet works:
    Currently my worksheet looks up criteria and autofills this information in columns B-F based on the product number entered into column A. What I would like to see, is this message box appear after columns B-F have been autofilled, but ONLY if Column F returns the code "384".

  4. #4
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Msg Prompt if a row in Column contains unique value

    Hello thekidLegion,

    i'd like the message box to prompt auto-magically upon the value being inputted into this cell.
    As I understand your issue, the value in Column F is not entered manually, it appears through a formula if it equals "384", and that unfortunately will not fire any Code to present you with a Message Box to confirm if it is a "Black Product".

    Sure, one could Code in such a way that Column G displays "Black Product", if Column F = "384", but what if the "384" in Column F is not a "Black Product"? The system will not be able to dicide when what should apply, besides making it all a "Black Product", hence the caveat of human cofirmation selecting Cells in Column F, to correct the "classification".

    The only other rather complicated way, would be to replace your Message Box with a Userform which resembles a Message Box, and try it along the lines as covered here: http://forums.techguy.org/archive-bu...cro-input.html

    And that my dear fellow Forum Member, is how far I am able to assist.

    Good luck.

    Regards

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Msg Prompt if a row in Column contains unique value

    Hi thekidLegion,

    I was just thinking, that if you can live with the human interaction, then maybe you would find this Code a bit more user friendly;

    Please Login or Register  to view this content.
    Regards
    Last edited by Winon; 10-20-2013 at 08:47 PM.

+ 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. Why Can't I Get Rid of The Column Header Prompt (Sorting)? - Macro
    By ahilty in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-12-2013, 03:49 PM
  2. [SOLVED] counting unique values in col A against unique value in column B
    By greyscale in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-08-2013, 08:43 AM
  3. Replies: 7
    Last Post: 05-11-2012, 02:00 PM
  4. Count Unique Values In One Column Basis Unique Values in Another Column
    By shez_raz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-07-2012, 01:55 AM
  5. VBA for prompt box to populate column
    By highwyre237 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2009, 05:39 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