Hi Everyone,
Its my first time using VBA and any sort of coding in general so I have been cracking my head for weeks trying to do this UserForm . I'm wondering if there is anyone here that could help me with it? Any help is appreciated, Thank you in advance!!
I've created a UserForm (Sheet 1 Button: Click me to enter Data ) to key in data into the excel spreadsheet. There is Name(cboName), Product(cboProduct), Date(txtDate) and Quantity(txtQuantity). I would like the last column ( Time Taken ( which is Quantity*standard time ) ) to be automatically calculated in the excel worksheet as the rows of data is added. The Data reference(Table3) for the standard time is in another sheet ( Sheet2 ) and to get the standard time, I would have to identify first from which group does the product lies, as the standard time is tied to the group. I am able to do it with excel formula ( IFS ) quite easily but I would like to do it with VBA so whoever uses it wouldn't accidentally delete or change the formula. Is there a way to do so? I'll attach the screenshot of the excel formula below.
I have attached my Excel worksheet here, the IFS formula that I tried is also in the worksheet. Thanks!!
I'm sorry I didn't know that I'm not allowed to post on other Forums, but I posted on 2 others Forums yesterday. I'll attach the links below. If this causes any inconvenience, do let me know so I can take down the thread in other Forums!
Link 1 :"stackoverflow.com/questions/70285615/search-data-to-calculate-the-quantity-with-vba-userform"
Link 2 :"mrexcel.com/board/threads/search-data-and-calculate-with-vba-userform.1189762/"
*I removed the www and https because it seems like I wouldn't be able to upload with it
Bookmarks