+ Reply to Thread
Results 1 to 2 of 2

Select tablerow from combobox value and change row column value

  1. #1
    Registered User
    Join Date
    04-29-2020
    Location
    Denmark
    MS-Off Ver
    365
    Posts
    1

    Smile Select tablerow from combobox value and change row column value

    Hi excelforum,

    This is my first try at VBA so sorry in advance if the coding seems illogical, it is primarily based on my intuition.

    I have a table (Tabel1) with 2 columns (ID# and Status) as well as combobox (pro_task_box) set to list both columns of the table.
    I am looking for the user to be able to select a row from the combobox and with the click on a button change the value of the status field for the selected row to "complete".
    I can't seem to get my code working - any help would be really appreciated. Thanks in advance.

    My code looks like this:
    Please Login or Register  to view this content.

  2. #2
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Select tablerow from combobox value and change row column value

    Demo code is step by step readable, as you gain experience you would condense this to a few lines.
    There is no need to search the Table for the Combobox value, you already know its ListIndex by default.
    Any queries post back on this site.
    Happy coding.
    torachan.
    Attached Files Attached Files

+ 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 - dependent combobox to select worksheet to return search results and data change
    By ThePeoplesClub in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-29-2016, 01:27 PM
  2. Select result in Combobox and show next column value in textbox
    By moosmahna in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2016, 01:28 PM
  3. [SOLVED] Allow user to select column(s) from Combobox
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-07-2016, 09:19 AM
  4. [SOLVED] Case Select not catching right column in Userform's Combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-08-2014, 02:28 PM
  5. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 PM
  6. ComboBox Change to Select Cell
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-28-2012, 03:52 PM
  7. [SOLVED] Multi Column Listbox change based on a selection from a combobox
    By AttalaEA in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-21-2012, 06:00 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