Hi all. I’m hoping I can get an answer to the following.
I would like to be able to update numerous tables with a UserForm. The particular Table would be selected from the UserForm via a drop down menu. All Tables are dynamic and on the same sheet. A sample file has been attached.
I have 2 command buttons on the ‘Buttons’ sheet, each opening a UserForm; One UserForm to enter new data into the Tables, the other to amend and, or delete existing data. (Depending on whether the later is possible).
In the ‘Add Suburb’ UserForm, there is a drop down menu (ComboBox?) to select the Table (City) in which the information is to go, and 2 text boxes for the information that is to be entered. The text boxes are called ‘Enter Suburb’ and ‘Enter Distance from GPO’.
The second UserForm ‘Edit/Delete Suburb’ is a little more complicated. There are 2 drop down menus (ComboBox?). The first is to select the Table (City) in which to edit and the second to select the ‘Suburb’ that needs editing or deleting. Like the first UserForm, this one also has 2 text boxes for the information that is to be entered or in this case amended.
If possible, the code should include sorting the table after the information has been entered. If this is not possible, then a separate ‘Sort’ button in the UserForm is required.
Note: The first Table named ‘Cities’ is definitive and does not get updated.
Any and all help would be greatly appreciated.
Bookmarks