+ Reply to Thread
Results 1 to 4 of 4

Ssaving data from userform to multiple worksheets.

  1. #1
    Registered User
    Join Date
    12-26-2013
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    3

    Post Ssaving data from userform to multiple worksheets.

    Hi,

    I am a beginner in advance excel and I have created a simple application using excel-VBA. I am using a single user form to enter the data and to be saved in the respected worksheet. I tried If conditions but it's getting too long code. Then I studied the sample codes which I found here but unfortunately it didn't work. I'm just briefing here what I'm doing and what I want, as below,

    userform1 contains : combo box1 - contains a list of customers.
    Combo box2 - contains a list of products.
    Combo box3 - packing sizes.
    Textboxes - contains Date, quantity, bill no, amount

    There are 18 different sheets with the name of customers. Using above mentioned form I am choosing a particular customer, fill the other information and need to save it to the sheet named to that particular customer.

    Can anybody guide me regarding how to write the code for it in VBA?

    Thanks in advance.

    K Mahendra.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Ssaving data from userform to multiple worksheets.

    Define the sheet name from the combobox1 value e.g.

    Please Login or Register  to view this content.
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    12-26-2013
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Ssaving data from userform to multiple worksheets.

    Thank you so much Andy. It helped a lot.

    K Mahendra

  4. #4
    Registered User
    Join Date
    12-26-2013
    Location
    Pune
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Ssaving data from userform to multiple worksheets.

    Thanks again for your help Andy.

    One more problem.

    I have two text boxes on user form, where I input the amount. It's getting saved on excel sheet. I want those amounts to be entered in 000000.00 format on excel sheet. I have put the sum and subtraction formula on excel sheet. When I enter the amounts, I should get those formulae work, currently it's not working.

    Please guide me.

    Thanks,
    K Mahendra

+ 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. Userform search from multiple worksheets
    By marreco in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-19-2013, 03:09 PM
  2. Userform displaying multiple worksheets
    By Fixa in forum Excel General
    Replies: 5
    Last Post: 03-12-2012, 08:21 AM
  3. VBA: Userform search from multiple worksheets
    By jyl_woo in forum Excel General
    Replies: 1
    Last Post: 03-29-2011, 09:52 AM
  4. Userform data to multiple worksheets
    By JessFace in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-04-2010, 12:44 PM
  5. UserForm selected data; to edit multiple worksheets(& specific rows)
    By anonfish in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2010, 11:43 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