+ Reply to Thread
Results 1 to 5 of 5

Changing / dynamic promppt box within Macro

  1. #1
    Registered User
    Join Date
    09-19-2012
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    29

    Changing / dynamic promppt box within Macro

    Hi All,


    Cell C4 = Question
    Cell D4 = Validation field (Yes or No)
    Cell E 4 = Details depending on D4

    If D4 = "NO", E4 = "NO REQUIREMENT"
    IF D4= "YES", run macro and input information in the prompt box. E4 will then equal any information in the prompt box.

    What I want to do is everytime the prompt box runs I want it to equal the question in C4, but only if the answer to D4 = "YES".

    Below is the macro code I used. Any help would be greatly appreciated!

    Please Login or Register  to view this content.
    Last edited by arlu1201; 09-19-2012 at 12:06 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Changing / dynamic promppt box within Macro

    Welcome to the forum.

    I have added code tags to your post. As per forum rule 3, you need to use them whenever you put any code in your post. Please add them in future. If you need more information on how to use them, check my signature below this post.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    09-19-2012
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Changing / dynamic promppt box within Macro

    Hi Arlette,

    Apologies for missing that, but thanks for looking out!

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Changing / dynamic promppt box within Macro

    jbench18,

    Welcome to the forum!
    Attached is an example workbook based on the criteria you described. It uses a worksheet_change event to generate the inputbox whenever "Yes" is selected from column D. The code is located in the Sheet1 code module.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    09-19-2012
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    29

    Re: Changing / dynamic promppt box within Macro

    Hi tigervatar,

    That is EXACTLY what I'm looking for!!! THank you for the help and the really quick response. Doing erveything I need!

+ 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