I'm trying to get a box to pop up listing a number of values that could be blank.
MsgBox (res1 & vbNewLine & _
res2 & vbNewLine & _
res3 & vbNewLine & _
res4 & vbNewLine & _
res5 & vbNewLine & _
res6 & vbNewLine & _
res7 & vbNewLine & _
res8 & vbNewLine & _
res9 & vbNewLine & _
res10 & vbNewLine & _
res11 & vbNewLine & _
res12 & vbNewLine)
what I want to do is have is something like this:
if res1 <> "" then
res1 & vbNewLine
else
""
end if
Because what shows at the moment is load of blank lines:
You could declare a String, and construct the string to display the characters. Something like,