Ap******@gmail.com wrote:
Is it acceptable to use a colon ":" to seperate statements in VBA?
strVar1 = "A": lngVar2 = 0: blnVar3 = True
Msgbox strVar1: Msgbox lngVar2: Msgbox blnVar3
I was going to say don't be so silly, but before I did, I tried:
Function test()
MsgBox "hi": MsgBox "hello": MsgBox "What cha doin?"
End Function
And I'll be a monkey's uncle, it works!!!
So I guess it's acceptable. 8) I would find it hard to read and follow
if I were looking at code, though.
--
Tim
http://www.ucs.mun.ca/~tmarshal/
^o<
/#) "Burp-beep, burp-beep, burp-beep?" - Quaker Jake
/^^ "Be Careful, Big Bird!" - Ditto "TIM-MAY!!" - Me