vbamagician / IdeasAndIssues

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

Open vbamagician opened 1 year ago

vbamagician commented 1 year ago

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:

  1. 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.
  2. 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.
  3. 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:

  1. Initial data in the lstSource:
    • Item 1
    • Item 2
    • Item 3
  2. Initial data in the lstSelected: (empty)
  3. User Action:
    • Double-click on "Item 2" in lstSource.
  4. Expected Result:
    • lstSource: Item 1, Item 3
    • lstSelected: Item 2

Expected Look

image

Additional Information

Acceptance Criteria

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!