This repository is dedicated to curating and maintaining a list of ideas and issues. Every idea and issue will be considered for implementation at some point.
0
stars
0
forks
source link
Feature: `SwiftSelectList` A Custom VBA UserForm Control #4
As a VBA developer, I would like to have a custom UserForm control that provides the following features:
SourceList and SelectedList: The control should consist of two ListBox controls, lstSourceand lstSelected, to display the list of data. The lstSourcewill contain the source data, and the lstSelectedwill display the data selected from the lstSource.
TextBox: The control should have a TextBox named txtSearchBox, which allows users to search for items in the lstSource. When the search box is empty, the lstSourceshould display only those items that are not present in the lstSelected.
Double-Click Event: When a user double-clicks an item in the lstSource, it should be removed from the lstSourceand appended to the lstSelected. Similarly, double-clicking an item in the lstSelectedshould remove it from the lstSelectedand append it back to the lstSource.
Example
Here's an example of how the control should behave:
Initial data in the lstSource:
Item 1
Item 2
Item 3
Initial data in the lstSelected: (empty)
User Action:
Double-click on "Item 2" in lstSource.
Expected Result:
lstSource: Item 1, Item 3
lstSelected: Item 2
Expected Look
Additional Information
Please ensure that the control is implemented in a way that is compatible with VBA UserForms in Microsoft Excel and other Office applications.
The control should handle edge cases, such as handling the situation when no item is selected or when the search box is empty.
Consider providing an initialization subroutine (UserForm_Initialize) to set up the initial data in the lstSource for demonstration purposes.
Acceptance Criteria
The control should be implemented using VBA code within a UserForm.
The control should have a TextBox (txtSearchBox) to search for items in the lstSource.
Double-clicking an item in the lstSourceshould move it to the lstSelected.
Double-clicking an item in the lstSelectedshould move it back to the lstSource.
When the search box is empty, the lstSourceshould only display items not present in the lstSelected.
Priority
This feature is of High priority as it would significantly enhance the usability of VBA UserForms in our projects.
Environment
Microsoft Excel 20XX or other Office application with VBA UserForm support.
References
If applicable, provide any references or examples that might help with the implementation.
Feel free to copy and paste this template into a new GitHub issue. Modify it as needed to add any specific details or context related to your project. Good luck with your development!
Feature Request: Custom VBA UserForm Control
Description
As a VBA developer, I would like to have a custom UserForm control that provides the following features:
lstSource
andlstSelected
, to display the list of data. ThelstSource
will contain the source data, and thelstSelected
will display the data selected from thelstSource
.txtSearchBox
, which allows users to search for items in thelstSource
. When the search box is empty, thelstSource
should display only those items that are not present in thelstSelected
.lstSource
, it should be removed from thelstSource
and appended to thelstSelected
. Similarly, double-clicking an item in thelstSelected
should remove it from thelstSelected
and append it back to thelstSource
.Example
Here's an example of how the control should behave:
lstSource
:lstSelected
: (empty)lstSource.
lstSource:
Item 1, Item 3lstSelected:
Item 2Expected Look
Additional Information
UserForm_Initialize
) to set up the initial data in thelstSource
for demonstration purposes.Acceptance Criteria
lstSource
.lstSource
should move it to thelstSelected
.lstSelected
should move it back to thelstSource
.lstSource
should only display items not present in thelstSelected
.Priority
This feature is of High priority as it would significantly enhance the usability of VBA UserForms in our projects.
Environment
Microsoft Excel 20XX or other Office application with VBA UserForm support.
References
If applicable, provide any references or examples that might help with the implementation.
Feel free to copy and paste this template into a new GitHub issue. Modify it as needed to add any specific details or context related to your project. Good luck with your development!