+ Reply to Thread
Results 1 to 7 of 7

Need help on creating a Pop-up text menu once a cell is touched

  1. #1
    Registered User
    Join Date
    01-23-2012
    Location
    houston
    MS-Off Ver
    Excel 2003
    Posts
    18

    Need help on creating a Pop-up text menu once a cell is touched

    I have a table named "category table" showing a numeric value for product classification as follows:
    Severity Classification
    1 Safe Product, No Contamination
    2 Safe Product, Possibility of Contamination
    3 Unsafe Product, Trace of Contamination
    4 Unsafe Product, Extensive Contamination
    5 Unsafe Product, Shut Down Operation

    In another worksheet, I have product list:
    Product Status
    A (need to see the product table pop-up once the cell in the status category is touched)
    B
    C
    D
    E
    F
    G
    H

    I' like to know whether there is a way when status cell is clicked, the category table is popped up and the numeric value is entered in the status cell

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Need help on creating a Pop-up text menu once a cell is touched

    Hello there,

    Attached is a workbook that I believe accomplishes what you are looking for. To begin make sure to enable macros and content. Then, to test it out select the worksheet "ProductList". Then double click on a Product (cells 2 throguh 8). This will bring up userform. Double click on category, this will populate the Status cell and exit the form.

    To use this in your workbook, open up your workbook in the same excel window as the workbook I have provided you. Press Alt+F11 to bring up Visual Basic. In Visual Basic you should see on the left VBAProject(yourworkbookname.xls) and then another one named VBAPoject(alex.xls). under the VBAProject(alex.xls) Click on the userform1 under the forms folder and drag it the Microsoft Excel Objects under VBAProject with your workbook name. Next double click on the worksheet name that contains your product list. It will appear list Sheet1(you worksheet name) in the VBA window(under mine it's Sheet1(ProductList)).

    Right click on the Userform you inserted into your document(i.e. the one you just dragged) and select View code. I have left some comments for you. You'll need to change the worksheet names to fit your workbook.



    Copy and paste the below code into the white space provided.

    Please Login or Register  to view this content.

    Exit out of VBA and you can close the workbook I supplied you and should be able to begin working with yours.
    Attached Files Attached Files

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Need help on creating a Pop-up text menu once a cell is touched

    An easier way to do this might just to provide a drop down list in Column B cells.

  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: Need help on creating a Pop-up text menu once a cell is touched

    Hello alex_a,

    By creating a Named Range for Categories, and a little other change, I think that you will now find that what rvasquez offered you could provide for a wider scope as to what a DropDown could do with its "fixed range" could do for you, since you will have to adjust it as the Range could grow.

    Try the attached WB, and see how good a job rvasquez actually started with
    Attached Files Attached Files
    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] .

  5. #5
    Registered User
    Join Date
    01-23-2012
    Location
    houston
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Need help on creating a Pop-up text menu once a cell is touched

    Quote Originally Posted by Winon View Post
    Hello alex_a,

    By creating a Named Range for Categories, and a little other change, I think that you will now find that what rvasquez offered you could provide for a wider scope as to what a DropDown could do with its "fixed range" could do for you, since you will have to adjust it as the Range could grow.

    Try the attached WB, and see how good a job rvasquez actually started with
    Thanks for the outstanding solution. Great job Winton and rvasquez. The problem has been solved!

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Need help on creating a Pop-up text menu once a cell is touched

    @ alex_a

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. I'll do that for you now but please keep in mind for your future threads that Rule #9 requires you to do that yourself. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

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

    Re: Need help on creating a Pop-up text menu once a cell is touched

    @ Cutter,

    Thank you for your response to this Thread. It may be a good idea to make it a "Sticky" since there are many OP's that don't mark their Threads as solved

+ 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