PDA

View Full Version : Solved: test appearance of Code vs VBA



dcraker
10-07-2008, 10:06 AM
Sub Hello()
MsgBox "Hello World!"
End Sub
Sub Hello()
MsgBox "Hello World!"
End Sub

Bob Phillips
10-07-2008, 02:12 PM
VBA is 'better' as it recognises keywords, but Code presrves your format. It's a tough call.

Demosthine
10-07-2008, 03:07 PM
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

CreganTur
10-08-2008, 06:12 AM
Any solution or workaround for that?


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.

If something Then
some crap
If something else Then
some more _
& crap
End If
End If

NinjaEdithttp://img293.imageshack.us/img293/9060/ninja3od8.gif: 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.