+ Reply to Thread
Results 1 to 4 of 4

Userform populating more than one worksheet

  1. #1
    Registered User
    Join Date
    10-20-2012
    Location
    salinas, ca
    MS-Off Ver
    Excel 2010
    Posts
    25

    Red face Userform populating more than one worksheet

    Hello Forum Members!

    Once again, I'm in need of you expertise in solving a problem. I have a Userform that has a combobox to select one of the multiple sheets in the workbook, so that the information being entered into the form goes to that particular sheet. The problem is that the info is going to all the sheets in the workbook, which are the same in format just used at different times.
    The user gets the form when a button is clicked. The form itself has a combobox with sheet choices and a few fields to enter information, then there is a submit button that is supposed to take the information to the selected sheet but instead is populating all the sheets in that workbook.
    Is there a way to make the sheet selection also focus the delivery of the information collected to the selected sheet? In other words, if the user chooses sheet 3 from the drop down menu, fills in the fields with info, then clicks the submit button... what do I need to do to have that info appear only in sheet 3 and nowhere else?

    Thank you in advance for any help you guys can provide on this one... and please let me know if you need more information.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Userform populating more than one worksheet

    Upload your sample file with the form n code.

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Registered User
    Join Date
    10-20-2012
    Location
    salinas, ca
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Userform populating more than one worksheet

    Hi arlu1201 and everyone else,

    Thanks for the interest on this issue! Here's the file in question... I'm still working on the first phase of development so there may be some missing components on the form, but I think there is enough data there to show you where the problem is:
    Userform2 ("Shipping Info" button) allows the user to enter the data for the "heading" of the worksheet; only the data gets copied to all other sheets when the "submit" button is clicked. I would like the data to go to the selected worksheet only, which is designated by the combobox located on top of the form. Also, I may need the "submit" button on Userform1 ("Loader Sheet" button) to behave in a similar fashion... would the solution to the first issue work on the second?

    Please let me know if there is anything else you may need... and thank you again for your help.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-20-2012
    Location
    salinas, ca
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Userform populating more than one worksheet

    Hello Everyone...

    Since I didn't hear from anyone on a possible solution to the problem, I kept playing around with the code until I found the right combination to make the userform work the way I needed it to. I'm posting the solution in case someone else needs to solve a similar issue.

    Please Login or Register  to view this content.
    Thanks for trying... and I hope this helps!

+ 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