Im new to this whole VBA programming stuff. Just started using VBA to make an excel spreadsheet that prompts users to input certain data. I have a spreadsheet setup that ask the users to input certain data on a userform about location and type of mechanical part we are going to be analyzing then 3 more userforms are prompted to ask 4 questions each. That all works well but what my problem is I would like to run these same 3 userforms multiple times without having to create 15x3= 45 userforms. Basically Im trying to figure out how to program excel to use the same 3 userforms but insert the data into different rows each time the userforms are called. I only know how to program the comboboxes to input data on a single cell. I would like to be able to use the same sheets over and over again until all mechanical parts have been analyzed.
Also, I need to figure out how to get some numbers to act like numbers and not variables. Each combobox within my userform have selections like 0 probable, 1 possible, 2 Unlikely. I then use IFTHEN statements to turn thos 1 Probable on the drop down into a 0,1, or 2 on the excel sheet. I would like to sum them up for each userform and don't how to get to act as a number..
I have mutliple lines of code that look like this:
If ComboBox4.Value = "0 Probable" Then Cells(22, 17).Value = "0"
If ComboBox4.Value = "1 Possible" Then Cells(22, 17).Value = "1"
If ComboBox4.Value = "2 Unlikely" Then Cells(22, 17).Value = "2"
Anyhelp with this problem would be awesome. Been trying to figure this out for a couple days and have had ZERO luck. Thanks.
Bookmarks