+ Reply to Thread
Results 1 to 6 of 6

Transfer data from Userform to multiple worksheets

  1. #1
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Transfer data from Userform to multiple worksheets

    Hi

    I have a userform which I would like to transfer the data the several worksheets.

    However, I could not get the correct vba code, especially Worksheet Orange - data are transferred to row 17 instead of the next blank.

    Kindly assist me with the following:
    1) I do not want to transfer the month ie ComboBox1Month. Instead, I hope to have a vba code to search for the month and transfer data to the adjacent columns.
    2) Is it possible to auto populate TextBox22AppleTotal with the sum of the other 2 textbox, ie TextBox1AppleS and TextBox2AppleB in the userform? Else, please assist with the vba code to transfer the sum to the "Total Sales" Column.

    Attached my worksheet for your assistance.

    Thank you.

    Regards
    Nancy
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Transfer data from Userform to multiple worksheets

    The reason that data was going to the wrong row in the Orange sheet is that you have some data on rows 147:149.
    Try the file I've uploaded, but you'll need to add the code for the Pear & Orange totals in the same manner as I've done for Apples
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Transfer data from Userform to multiple worksheets

    Hi

    Thank you for the solution.

    However, it works well if all the fields in the userform are completed. Else, there is an error message runtime 13.

    Best regards
    nancy
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Transfer data from Userform to multiple worksheets

    Ok, try this
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    04-20-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Transfer data from Userform to multiple worksheets

    Thank you so much. Works perfectly. Best Regards

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,080

    Re: Transfer data from Userform to multiple worksheets

    Glad to help & thanks for the feedback

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Using a Userform to transfer data to individual worksheets in specific columns and rows.
    By Ortz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2016, 07:00 PM
  2. Automatically sort data and transfer to multiple workbooks and worksheets
    By BTraves in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-14-2015, 04:17 PM
  3. Transfer data from Userform to multiple spreadsheets
    By KLG519 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2015, 12:17 PM
  4. Transfer data between worksheets using multiple criteria
    By ExcelDummy2 in forum Excel General
    Replies: 1
    Last Post: 02-26-2013, 12:26 PM
  5. Replies: 2
    Last Post: 02-20-2013, 12:40 PM
  6. Replies: 0
    Last Post: 03-25-2007, 11:44 AM
  7. Transfer data from multiple worksheets
    By jimbob in forum Excel General
    Replies: 4
    Last Post: 01-28-2006, 10:38 PM

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