+ Reply to Thread
Results 1 to 7 of 7

Populating Userform data to another worksheet

  1. #1
    Registered User
    Join Date
    09-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2010
    Posts
    12

    Populating Userform data to another worksheet

    Afternoon chaps,

    I have created a userform that I need to input data on one sheet in a workbook, but the data needs to be added to another worksheet.

    I have created the userform and the code behind it but it will only add data to the sheet the userfom runs from.

    I need to be able to add the data to the 'database' sheet.

    Anyone tell me where I am going wrong, it would be much appreciated

    Cheers

    Ignore the attachment..... I will upload again once I have removed some code
    Attached Files Attached Files
    Last edited by BigSpeekaz; 10-07-2014 at 06:39 AM.

  2. #2
    Registered User
    Join Date
    09-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2010
    Posts
    12

    Re: Populating Userform data to another worksheet

    Apologies.....

    I have attached the corrected file
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2010
    Posts
    12

    Re: Populating Userform data to another worksheet

    Maybe need to explain this another way

    I have a control button for a userform on sheet 1. The information input into the userform needs to be added to the database on sheet 5.

    Currently I can only add the data to sheet 1??

    How do I direct VBA to add the data to sheet 5?

  4. #4
    Registered User
    Join Date
    09-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2010
    Posts
    12

    Re: Populating Userform data to another worksheet

    Bumping this..... I still need help guys! Thanks

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Populating Userform data to another worksheet

    The code is fine as long as 'database' sheet is the active sheet. Before you run the code behind the user form, your cursor should be on sheet database.
    I have now amended the code that all values from the controls are written in to next empty row in sheet database.
    Attached Files Attached Files
    Last edited by AB33; 10-10-2014 at 09:21 AM.

  6. #6
    Registered User
    Join Date
    09-09-2014
    Location
    Newcastle, England
    MS-Off Ver
    2010
    Posts
    12

    Re: Populating Userform data to another worksheet

    Thanks AB33

    I understand what you are saying but want I want to achieve is to have the control button for the userform on a separate sheet. If at all possible I would like the database sheet to be hidden from view

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Populating Userform data to another worksheet

    Have you tried the amended code? You have a button on sheet introductory which opens the user form.

+ 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] Userform populating more than one worksheet
    By Julez80s in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-13-2012, 04:44 PM
  2. Populating a userform textbox from worksheet
    By shakey775 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-24-2011, 03:53 AM
  3. Populating a worksheet from a UserForm
    By mayrose in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-21-2009, 02:55 AM
  4. [SOLVED] Populating Userform ComboBox with worksheet names in XL2003
    By MAWII in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-09-2005, 05:05 PM
  5. Populating a Worksheet from a UserForm
    By jpendegraft in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-08-2005, 10:36 AM

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