Hi, I'd like to create a quick method of adding vba to a userform.
The idea being I can just hit a button and insert a "part number" this will then add the code in txt box 1.(if partnumber. Value="1234" then msgbox "do not use" end if.
We have to add a few of these due to quality risks.
Any idea if the button idea is possible.

Cheers
Shaun.