Hi, I really hope someone can assist with a few issues I have with my userform!
I only know very little VBA and therefore the help request. I have attached a workbook with a working userform and some functions already working but I need help with other functions to control data between the database sheet and the Input sheets.
I have a userform that performs a few functions that work through a listbox called "ResultBox" and I would like to achieve the following:
1. My code not working here: On the userform when you click "New Student Button" then Input 1 sheet must open, all current Input data must be deleted from Input 1 and Input 2 sheets and then a new student ID number must be added to cell "C5" on the Input 1 sheet which it will get by looking what the last ID number was on the DB sheet. I do have some code that I got from another sheet but I can't get it to work here.
2. On the userform, when you select a student displayed in the ResultBox (after clicking All Students or Current Students button) and then click on Load Student Info button then it must transfer all associated data from the DB sheet to the corresponding input cells on sheets Input 1 and Input 2
3. On the userform, when you select a student displayed in the ResultBox and click the Delete Student button also on the userform, then all that student's data must be deleted from the DB sheet including the ID number (so basically the whole row must be deleted)
4. Lastly how does one set the formatting in the ResultBox so that the last 3 columns show as currency amounts (3rd and last columns) and a percentage(%) amount with 2 decimal places in the second last column?
Thanks
Bookmarks