Zhb,
Set up a variable for each textbox item, then simply add them to the formula. For example:
Obviously, my example is a made up formula and I didn't create variables for ALL of your textboxes, but I think you can figure it out from there.
As far as WHERE to add it, this really is up to you and based on need. For example, it may not even be in the TextBox6 code. Instead, it might be in the TextBox5_Exit (meaning as soon as you exit TextBox5, the code runs. It's hard to answer this part of your question without seeing your userform, and explaining what you need it to do.
Bookmarks