+ Reply to Thread
Results 1 to 12 of 12

Programming a user form

Hybrid View

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

    Re: Programming a user form "Excel" with macros

    You don't print a userform, you save the input to a formatted sheet & print the sheet. You already have the sheet.

    Your code needs some major tidying. Remove all those small scroll commands. also, you don't need to select the rages, that's why the screen "flickers"
    Last edited by royUK; 10-24-2009 at 09:33 AM.
    Hope that helps.

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

    Free DataBaseForm example

  2. #2
    Registered User
    Join Date
    04-15-2009
    Location
    morristown, ny
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Programming a user form "Excel" with macros

    That's great news. Can I have the sheet on one tab and the form on another or do I need to put my form parts over the cells they will be linked to fill in? Also, how do you move from one text box to the next one for the user to fill in?

    Thank you

  3. #3
    Registered User
    Join Date
    10-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    59

    Re: Programming a user form "Excel" with macros

    Hello,

    If you use a userform, the activesheet can be any sheet. In other words, the form does not have to be near the cell or on the sheet where the data will eventually end up. Once the user has filled the desired textboxes / fields, they can click a command button that will transition the data from the form to the appropriate sheet.

    To move from one field to the next on a Userform, the user simply tabs over. Simply adjust the tab index property of the userform.

    RoyUk's sample Dataform should get you started . . .

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

    Re: Programming a user form "Excel" with macros

    Quote Originally Posted by ed ayers315 View Post
    That's great news. Can I have the sheet on one tab and the form on another or do I need to put my form parts over the cells they will be linked to fill in? Also, how do you move from one text box to the next one for the user to fill in?

    Thank you
    I think you need to read a little about userForms. You can also see an example here

    http://excel-it.com/vba_examples.htm

    Look at the database form

  5. #5
    Registered User
    Join Date
    04-15-2009
    Location
    morristown, ny
    MS-Off Ver
    Excel 2007
    Posts
    39

    Re: Programming a user form "Excel" with macros

    What you suggested helped out a lot. I have attached a the file with 4 user forms linked to the Excel work sheet. I can not figure out How to get the user form to come up fro the user to fill out and then get to the next page.

    Any suggestions would be appreciated, thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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