brendalpzm
Board Regular
- Joined
- Oct 3, 2022
- Messages
- 59
- Office Version
- 365
- 2021
- 2019
- 2016
- Platform
- Windows
Let's say I have the following table
Sheet name: Values
An I want to fill an ActiveX List Box but only with the values from columns A,B and D, and also only from year 2023.
How would the VBA code could work? my list box is in a form inside the excel that pops up when I click an activex button.
Sheet name: Values
A | B | C | D | |
1 | Folio | Model | Year | Status |
2 | 156 | Forte | 2022 | Delivered |
3 | 452526 | Rio | 2023 | In repair |
4 | 785 | Stinger | 2023 | Delivered |
5 | 475 | Forte | 2020 | In progress |
An I want to fill an ActiveX List Box but only with the values from columns A,B and D, and also only from year 2023.
How would the VBA code could work? my list box is in a form inside the excel that pops up when I click an activex button.