tags:

views:

30

answers:

1

Hey Guys,

Is there any Java-like solution for concatenatin strings in VBA?

I want to use a MsgBox in a way like this:

...
Set UT = Workbooks(dropdownValue).Worksheets(1)
With UT
       UT_rows = .Cells(3, 15).End(xlDown).Row
End With
MsgBox "Rows of the file: " + UT_rows

But when I do that, my code hangs up at this point. (incompatible Types)

+3  A: 

You should always use & when concatenating;

MsgBox "Rows of the file: " & UT_rows
Alex K.
Thanks, this was the point :) Coming from java I've never thought about this...thanks a lot
poeschlorn