+ Reply to Thread
Results 1 to 9 of 9

popup boxes/user input

  1. #1
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    popup boxes/user input

    if i wanted to introduce pop-up boxes instead of just taking user input from cells, is that possible?

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: popup boxes/user input

    Good evening papermoon
    Quote Originally Posted by papermoon View Post
    if i wanted to introduce pop-up boxes instead of just taking user input from cells, is that possible?
    Yes, they're called userforms. Have a look at the attached example.

    HTH

    DominicB
    Attached Files Attached Files
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: popup boxes/user input

    Thanks alot. I did some more reading up on them and I think I know how to use them now. I just have one question. How do I set it so that the user input in the form links with a cell in the spreadsheet? do i just put [name of form text box].value=cell(x,y).value?

  4. #4
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: popup boxes/user input

    bump (10char)

  5. #5
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: popup boxes/user input

    anyone? (10char)

  6. #6
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: popup boxes/user input

    and how did you get a button on the excel sheet itself to load the popup box?

  7. #7
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: popup boxes/user input

    Hi papermoon

    Patience with your bumping my friend. Also, you know if you write too much on this forum your head will explode.

    Actually, it won't but to help you more effectively, we need a bit more info. Your question is way too general, and I've no idea of your skill level, but ...

    Load up my sample file and press Alt + F11. This will open up the VBE and expose the code that drives the form. Your earlier assumption on the link between form and cell is correct - remember your in coding territory now, so you have to do more stuff manually. There are no automatic links.

    The button is an object from the Control Toolbox toolbar and the code is in the Sheet1 module within the VBE. The magic line is :
    Please Login or Register  to view this content.
    You can also create a button (more easily) using the Forms toolbar, and attaching a macro.

    HTH

    DominicB

  8. #8
    Registered User
    Join Date
    05-03-2010
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: popup boxes/user input

    thank you

    how do i get a variable with a stored integer to be able to specify a range/criteria? for example, for this code:

    Please Login or Register  to view this content.
    how would I get the criteria1 or criteria2 to be a variable? do i just put the variable name where the 2000 or 3500 number is?

  9. #9
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: popup boxes/user input

    Hi papermoon

    Next time you have an unrelated question, please start a new thread.
    Please Login or Register  to view this content.
    HTH

    DominicB

+ 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