PDA

View Full Version : String Cocantenation With Variables



EdenC
06-07-2011, 02:35 AM
Hi Guys!

John Wilson helped me with String Cocantentation on this thread (http://www.vbaexpress.com/forum/showthread.php?t=37426) (Powerpoint 2007). However, how does it work with variables that have already been declared and assigned a string?

(I'm very bad at VBA so my termanology might be a bit off!)

Thanks!
Eden

John Wilson
06-07-2011, 05:32 AM
Sure it works!

Sub try_this()
Dim strVar As String
strVar = "the end"
MsgBox "the start and " & strVar
End Sub

EdenC
06-07-2011, 07:00 AM
Sure it works!

Sub try_this()
Dim strVar As String
strVar = "the end"
MsgBox "the start and " & strVar
End Sub

Sorry, I just made a small typo and didn't have time to come back on here to tell you! Thanks though!