![]() |
|
#2
|
||||
|
||||
|
It will work if you tell the code what the values are or the instruction + becomes the default for combining text strings e.g.
Code:
Dim Sum As Long
Dim Sum2 As String
'Sum = Val(TextBox1.value) + Val(TextBox2.value)
'or
Sum = CLng(TextBox1.value) + CLng(TextBox2.value)
Sum2 = TextBox1.value + TextBox2.value
MsgBox Sum & vbCr & Sum2
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| InfoPath - User Permissions & Shared Discussion | rob171171 | Misc | 0 | 09-17-2013 05:14 AM |
| other forums with visio discussion | Guy Roth | Visio | 1 | 05-23-2012 05:42 AM |