+ Reply to Thread
Results 1 to 4 of 4

Prompt Question before print with three answer possibilities

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    364

    Prompt Question before print with three answer possibilities

    Hi all

    I am asking a question users have to answer before print

    If MsgBox("Did you update the 'Effective as of', resp. entered the closing date, if applicable?", vbYesNo, "Effective as of") = vbNo Then Cancel = True
    New users usually ask what this field is for -> I'd like to add a third option, besides "Yes" or "No", - the button "What is this?"
    if this option is chosen another msg box will show up explaining it to the user.
    I know how i would make the msg box appear, but have no idea how to add the answer possibility "what is this?"

    Anyone would know a way to do this?

    Thx

    FD

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Prompt Question before print with three answer possibilities

    You need to create a userform
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    12-19-2011
    Location
    Central Europe
    MS-Off Ver
    Excel O365
    Posts
    364

    Re: Prompt Question before print with three answer possibilities

    Hi Roy

    Many thanks for your reply!

    I am afraid I have never done that before.
    How exactly do I do this?

    I know where the option is to insert such user form, but I do not know how to use the function.

  4. #4
    Forum Contributor
    Join Date
    02-08-2012
    Location
    South Suffolk
    MS-Off Ver
    Excel 2007
    Posts
    102

    Re: Prompt Question before print with three answer possibilities

    Have you considered using the 'Help' facility in the MsgBox function? There is an overhead in setting up the Help file (and compiling to CHM, say) but this can support users in many ways.
    Creating userforms isn't too difficult but like many things, seeing an example can be a big help. The attachment has a very simple form - quick and dirty - needs more refinement before use in anger!
    The entry point is a procedure 'test' in Module1.
    The title, message and 'what this means' are set via properties so that if the relevant parts of the form are changed, the calling code does not need to be altered.

    I expect you will have some follow-on questions but good luck
    Attached Files Attached Files

+ 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