Simply delete the line highlighted in yellow. It is not needed, since the lines after it calculate totalAllocated.
Just above End Sub, enter
TextBox2 = totalAllocated
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
I've created a UserForm in Excel to calculate a value from an input. I've written out the code and I can't figure out why it's a type mismatch. Please help! I'm new at VBA and I've written this out by just following YouTube tutorials. The end goal of this UserForm is to take the input in Total Real Meters and perform the calculations in the code below to give me an output in the Total Allocated box. I'm sure my code isn't complete. I'm just trying to get over this one hurdle first. I'd love any direction or explanations you can provide me. Thank you in advance!
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Simply delete the line highlighted in yellow. It is not needed, since the lines after it calculate totalAllocated.
Just above End Sub, enter
TextBox2 = totalAllocated
Thank you! That did it!