Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50070

Vlookup convert to userform/vba

$
0
0
Hello, could you please help me converting Vlookup to VBA/Userform?

Attached is the Sample.

What i need to do is:

1) When I input number in Task number textbox, task name textbox will auto populate depending on the task number, if wrong task number has been input, task name textbox will return N/A.

2)Also, when I input a number in the task number textbox and in the Quantity textbox, it will search the resources in Sheet1. 1 textbox per resources, also how many quantity it has. The Total Quantity field will compute the total quantity of the resources.

Example:

When I input "1234" in task number field, "1" in Quantity, result will be: Task name = Test1, Resources=PS-CUS - 5, PS-TU = 3. Also when i input "2" in Quantity field, quantity of resources will be multiplied by 2. Thanks in advance.
Attached Files

Viewing all articles
Browse latest Browse all 50070

Trending Articles