Thread
:
Concatenate two textbox values for message box
View Single Post
11-08-2014, 10:48 PM
gmayor
Windows 7 64bit
Office 2010 32bit
Expert
Join Date: Aug 2014
Posts: 4,144
You need to add ampersands between each element (and presumably the 'and' between the text box values).
Code:
MsgBox "Lookup for " & TextBox1.Text & " and " & TextBox2.Text & " not found"
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes
www.gmayor.com
gmayor
View Public Profile
Find all posts by gmayor