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)
You should always use &
when concatenating;
MsgBox "Rows of the file: " & UT_rows
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With