Consulting

Results 1 to 5 of 5

Thread: Exploring Userform Capabilities

  1. #1
    VBAX Contributor CaptRon's Avatar
    Joined
    Mar 2007
    Location
    Austin, Texas
    Posts
    141
    Location

    Exploring Userform Capabilities

    I'd like to learn more about userforms, how they work, what they can do, and how I can make them work for me.

    I would like to be able to develop a workbook where the user's only interaction with the workbook is via the userform. They must be able to prepare and print a report.

    Know of some especially good resources, examples, and training materials?

    Thanks,

    Ron
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes.

  2. #2
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Hey Ron, attached to this post is a very basic data input example using textboxes to put data into the next row of the sheet........

    Just to get your feet wet...

    code is in the userform......post questions here if you see something you don't understand.

    Ps. I don't have 2007 so all of my examples will be 2003..
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  3. #3
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    Once you start getting your data into rows you will want to figure out a way to print reports.....

    click in column a to select which items you wish to print....the template can be formatted any way you want it. The code is well commented so you should be able to figure out how the template sheet is populated by studying the code and comments.....

    You can also save the report sheets if you desire as worksheets......this is just a basic example as was the data input example.

    It is set up to preview instead of print during test process. That can be changed once you get it set up.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  4. #4
    Moderator VBAX Wizard lucas's Avatar
    Joined
    Jun 2004
    Location
    Tulsa, Oklahoma
    Posts
    7,323
    Location
    an address book that demonstrates the ability to add, edit or delete data and add selected items to a sheet to print list.....

    the selections are returned to the userform using label captions.....

    That should get you started. I don't know what kind of layout you have going but keeping data in rows is very convenient for excel.

    The sheets can be protected or even hidden from view.
    Steve
    "Nearly all men can stand adversity, but if you want to test a man's character, give him power."
    -Abraham Lincoln

  5. #5
    VBAX Contributor CaptRon's Avatar
    Joined
    Mar 2007
    Location
    Austin, Texas
    Posts
    141
    Location
    Thanks, Steve.

    This should keep me busy for a bit.

    I use Excel 2003 for the most part, but I also have 2000, 2002, and 2007 on my machine so I can test my workbooks through them before I distribute to the field. In our state agency, we use everything from 2000 to 2007. I dropped 97 when I acquired 2007. Can't say I like 2007 at all and I don't work in it unless I have to.

    Ron
    Before you criticize someone, you should walk a mile in their shoes. That way, when you criticize them, you're a mile away and you have their shoes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •