+ Reply to Thread
Results 1 to 8 of 8

Userform data to multiple worksheets

  1. #1
    Registered User
    Join Date
    07-23-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    17

    Userform data to multiple worksheets

    Hi all,

    I have created a userform with textboxes, comboboxes and command buttons.

    It basically serves as a meeting agenda database.

    I have about 20 options under my "Meeting Attendee" combobox. The options consist of the first and last name initial of people whom my boss will be meeting with. I have so far created it so that all of the information from the userform goes into one worksheet. But I have realized that this is not the best option. I require for each entry to go to the respective sheet of the meeting attendee (i.e. if he chooses Allan as his meeting attendee the information should go to a worksheet named "Allan", if he chooses KT the info should go to a worksheet named "KT".

    I am teaching myself vba and am not very familiar with it. Can anyone please help?

    Thanks
    Last edited by JessFace; 08-04-2010 at 01:05 PM.

  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: Userform data to multiple worksheets

    All information is best kept on one sheet.

    Attach an example workbook
    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
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: Userform data to multiple worksheets

    sorry!! i posted in wrong thread! And am deleting the text.
    sorry
    Last edited by wali; 07-24-2010 at 04:51 AM.

  4. #4
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Userform data to multiple worksheets

    Hi JessFace;

    As Roy says, you're better off keeping all the data in 1 sheet, 1 row per meeting attendee. Then use filters to display the data you want to see. You will be happier down the road if you do. You will constantly be upgrading the workbook and you don't want to have several sheets that are identical in design and you have to modify them all. If you need to have a sheet to display the data for one meeting attendee and the userform isn't adequate then put a Listbox on it to select the meeting attendee and use formulas to "look at" the appropriate row on the data sheet.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  5. #5
    Registered User
    Join Date
    07-23-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Userform data to multiple worksheets

    Here is the code that i am using, the only problem is that everything is going on the "Allan" sheet, i think that it is because of the second command in my code. My boss prefers to have everything separated out into different worksheets, hence the multiple worksheets.


    I attached my spreadsheet.
    Attached Files Attached Files

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

    Re: Userform data to multiple worksheets

    Your code tells the form to write to that sheet.

    Please Login or Register  to view this content.
    You need to work through the rest of your code & edit it to remove the selecting & unnecessary looping as I have done here

  7. #7
    Registered User
    Join Date
    07-23-2010
    Location
    New York, NY
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Userform data to multiple worksheets

    Roy,

    Thanks a million times for your help!
    Kudos to you.

    I do have one other question/request though. I have been looking for a way to change my print code so that my boss can choose what spreadsheet he would like to print. Would you know i way to code that>

    Thanks
    Jess

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

    Re: Userform data to multiple worksheets

    If you search the Forum I have posted an example form Sheets2Print

+ 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