+ Reply to Thread
Results 1 to 8 of 8

problem copy data from userform to sheet by multiple combobox & textbox

  1. #1
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    problem copy data from userform to sheet by multiple combobox & textbox

    hello
    actually i try copy data from multiple combobox to sheet but i no know how i can do that from combobx1 to 4 and textbox not copy to sheet1
    the copy data occur only from combobox5 to 8 and textbox 2
    this is my try
    HTML Code: 
    Attached Files Attached Files

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: problem copy data from userform to sheet by multiple combobox & textbox

    Your code is populating same row twice with different info...What do you actually want to send to sheet...
    ComBobox 1-4 and Textbox 1
    OR
    ComBobox 5-8 and Textbox 2
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: problem copy data from userform to sheet by multiple combobox & textbox

    IF youstep through your code line by line using F8 in the VBA editor you will see it does put the values from the form to the sheet for all controls. However, you overwrite some of them so it looks like it doesn't do them all.
    These 4 lines of your code stamp ComboBoxes 1-4 to columns A:D
    Please Login or Register  to view this content.
    Then the next 4 lines are overwriting them with the contents of ComboBoxes 5-8
    Please Login or Register  to view this content.
    BSB

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: problem copy data from userform to sheet by multiple combobox & textbox

    Instead of +1 use +2


    Please Login or Register  to view this content.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: problem copy data from userform to sheet by multiple combobox & textbox

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: problem copy data from userform to sheet by multiple combobox & textbox

    hi, sintek actually this invoice i have many brands i would when i fill data the invoice it should fill one time fro many brand not every time i fill each brand alone for specific invoice this is not practical that's why i design multiple combobox

  7. #7
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: problem copy data from userform to sheet by multiple combobox & textbox

    hi, BadlySpelledBuoy i know a bout your idea i just would some body help how can i overcome this problem thanks for your notice

  8. #8
    Forum Contributor
    Join Date
    06-02-2019
    Location
    libya
    MS-Off Ver
    2010
    Posts
    734

    Re: problem copy data from userform to sheet by multiple combobox & textbox

    thanks davesexel and sintek idea of davesexel works very well about the code of sintek is awesome using array thanks all

+ 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 copy textbox value to different range depending on Combobox selection
    By icsiszer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-11-2018, 03:42 AM
  2. [SOLVED] Userform - Multiple Criterias (Textbox, Combobox) Return Value in textbox
    By givemeaccessexcel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2018, 09:25 PM
  3. copy text from userform textbox to sheet textbox
    By Dfrost in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-28-2015, 02:19 AM
  4. Replies: 0
    Last Post: 08-18-2015, 04:13 PM
  5. [SOLVED] Copy userform data to a second sheet based on ComboBox value?
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-08-2012, 09:09 PM
  6. Find UserForm ComboBox Value (date) & Transfer TextBox Data To Same Row
    By okriskao in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2008, 11:33 AM
  7. Userform: Enter combobox value unless textbox contains data
    By smplogc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-01-2006, 07:25 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