+ Reply to Thread
Results 1 to 6 of 6

copy values from textbox to specific column based on match two comboboxes

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

    copy values from textbox to specific column based on match two comboboxes

    hello
    I search for way to copy the values from textbox1 based on two comboboxes 1,2. the combobox1 linked with column B . as to combobox2 is linked with the headers for multiple columns which contains PR so when select from combobox1 the item based on column B and select specific header for specific column and fill value into textbox1 . should fill under selected header from combobox 2 and beside the selected item from combobox1 and if I try changing again the differnt value for the header(PR) and the code have already contained value . should change and if the textbox1 is empty should delete the value based on selected combobox1,2 .
    thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: copy values from textbox to specific column based on match two comboboxes

    Please Login or Register  to view this content.

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

    Re: copy values from textbox to specific column based on match two comboboxes

    thanks but it just work in one column E (PR1) . it doesn't work for the others columns (F,G,H,I,J,K,L,M,N,O,P). the selected combobox2 depends on theses columns .
    each selected header in combobox2 depends who is the column should be filled . for instance if I select PR2 then should fill in column F and if I select PR3 then should fill in column G and so on for the rest of columns .
    Last edited by ABDELFATTA; 12-21-2021 at 06:55 AM.

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: copy values from textbox to specific column based on match two comboboxes

    You said,
    Quote Originally Posted by ABDELFATTA View Post
    so when select from combobox1 the item based on column B and select specific header for specific column and fill value into textbox1 . should fill under selected header from combobox 2 and beside the selected item from combobox1 and if I try changing again the differnt value for the header(PR) and the code have already contained value . should change and if the textbox1 is empty should delete the value based on selected combobox1,2 .
    So the code should work so.

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

    Re: copy values from textbox to specific column based on match two comboboxes

    as to combobox2 is linked with the headers for multiple columns which contains PR
    would you tell me what understood from this statement,please?

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

    Re: copy values from textbox to specific column based on match two comboboxes

    my apologies! there was old code in my file . I thought copying your code but it doesn't happens
    your code works perfectly,
    thanks so much

+ 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. Replies: 7
    Last Post: 05-20-2019, 10:34 PM
  2. Copy Textbox values to last blank row for specific columns
    By buhwheet in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-28-2018, 05:45 PM
  3. Idenitfy column based on value entered in textbox for specific range
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-10-2016, 09:00 AM
  4. Replies: 3
    Last Post: 02-18-2015, 02:02 PM
  5. list the values into comboboxes and vlookup to textbox from cmbobx
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2014, 03:32 AM
  6. Copy textbox data to a specific cell, based on date
    By themikeford in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2012, 10:12 PM
  7. copy specific worksheets based on textbox input
    By moonbecky in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-30-2008, 12:47 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