Hi again,
Creating the UserForm shouldn't be too involved - it contains only four controls.
In the VBA Editor click on Insert > UserForm on the main menubar - this will create a new "empty" UserForm
At the top of the Properties pane (click on F4 if it's not visible) you'll see a box for the (Name) Property - enter F01_Locations in this box
On the Toolbox menu (View > Toolbox if it's not visible) you'll see a control for creating a label (the second button on my system) - use this to create the label at the top of the form. Name the label lblInstructions in the Properties window, and enter "Select those Locations which should NOT be deleted" as its caption.
Use the Toolbox menu (the fifth button on my system) to create a ListBox on the UserForm. Name this ListBox lstLocations in the Properties window.
Use the Toolbox menu (the tenth button on my system) to create a CommandButton on the UserForm - in the Properties window, name this CommandButton btnOK, and enter OK as the value of its Caption.
As before, create another CommandButton on the UserForm and assign it a Name of btnCancel and a Caption of Cancel.
If you're feeling adventurous, use the Properties window to change the colours of the ForeColor properties of the above buttons to Green and Red respectively, to assign Accelerator values of O and n respectively, and to change the font of the OK button to Bold.
Now, right-click on the body of the UserForm itself and select ViewCode from the PopUp menu - this will open the VBA CodeModule for the UserForm.
Delete any pre-generated code (probably only 2-3 lines) from the CodeModule and then copy and paste the contents of the equivalent CodeModule for my UserForm into the CodeModule for your new UserForm.
I think the above steps should enable you to create your own "work-friendly" version of the UserForm.
Hope the above helps - please let me know how you get on or if you need any further help from my end.
Best regards,
Greg M
P. S. It's just occurred to me that you might not have copied the text from the UserForm CodeModule into a Notepad file, and that you therefore do not have it available to you at work right now, so I'm including that code below - hope it helps!
Bookmarks