[vba]Sub Hello()Sub Hello() MsgBox "Hello World!" End Sub
MsgBox "Hello World!"
End Sub
[/vba]
[vba]Sub Hello()Sub Hello() MsgBox "Hello World!" End Sub
MsgBox "Hello World!"
End Sub
[/vba]
VBA is 'better' as it recognises keywords, but Code presrves your format. It's a tough call.
____________________________________________
Nihil simul inventum est et perfectum
Abusus non tollit usum
Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
James Thurber
Yeah, that's one thing that utterly irritates me about trying to post code to the forum. Sometimes it deletes the whitespace and you lose your indenting. This is especially noticable if you preview your response before submitting it.
Any solution or workaround for that?
Scott
It doesn't always work, but often when I use VBA tags I can add in whitespace manually and have it stick, but the indent sections seem to be based on 4 spaces each.Any solution or workaround for that?
[vba]If something Then
some crap
If something else Then
some more _
& crap
End If
End If[/vba]
NinjaEdit: Hmmm... okay, I can't duplicate the whitespace like I thought I could.
For me keyword recognition is the big thing, so I use VBA tags.
-Randy Shea
I'm a programmer, but I'm also pro-grammar!
If your issue is resolved, please use Thread Tools to mark your thread as Solved!
PODA (Professional Office Developers Association) | Certifiable | MOS: Access 2003