Changing cell on button click pulling information from a ListBox

Boechat

New Member
Joined
Jul 16, 2016
Messages
44
Hey everyone,

I'm trying to run a dashboard with 3 different tabs as display and 1 tab as database.
Each display tab has a dashboard containing a ListBox and 3 TextBoxes. The List receives the data from the Database tab and the TextBoxes receive it from the List.
One of the TextBoxes displays status "ONGOING" or "DONE".

What I want is to add a button that, upon clicking, changes the information from "ONGOING" to "DONE" in the Database and consequently in the List and TextBoxes, for the selected item in the ListBox.

Meaning if I select the third Item in the List, the command has to alter the information in the correct row in the Database table.

Can someone help me out with the code to that button?


Additional info:
- Each List on each Tab has a defined range within the Database table, it is not dynamic, it has been added directly to the ListBox properties.
e.g. ListBox 1 ranges from A2:E27; ListBox 2 ranges from A28:E35 and so on...

- The Done or Ongoing status is contained in the E Column of the Database.

Thanks for the support!

EDIT:
Also posted https://www.excelforum.com/excel-pr...click-pulling-information-from-a-listbox.html
 
Last edited by a moderator:

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hey everyone,

I'm trying to run a dashboard with 3 different tabs as display and 1 tab as database.
Each display tab has a dashboard containing a ListBox and 3 TextBoxes. The List receives the data from the Database tab and the TextBoxes receive it from the List.
One of the TextBoxes displays status "ONGOING" or "DONE".

What I want is to add a button that, upon clicking, changes the information from "ONGOING" to "DONE" in the Database and consequently in the List and TextBoxes, for the selected item in the ListBox.

Meaning if I select the third Item in the List, the command has to alter the information in the correct row in the Database table.

Can someone help me out with the code to that button?


Additional info:
- Each List on each Tab has a defined range within the Database table, it is not dynamic, it has been added directly to the ListBox properties.
e.g. ListBox 1 ranges from A2:E27; ListBox 2 ranges from A28:E35 and so on...

- The Done or Ongoing status is contained in the E Column of the Database.

Thanks for the support!

EDIT:
Also posted https://www.excelforum.com/excel-pr...click-pulling-information-from-a-listbox.html

You can upload a file and explain the current operation of your listbox with an example.
Additional question, the listbox is in a userform?

You could upload a copy of your file to a free site such www.dropbox.com. Once you do that, mark it for 'Sharing' and you will be given a link to the file that you can post here. If the workbook contains confidential information, you could replace it with generic data.
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,183
Members
452,615
Latest member
bogeys2birdies

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top