SEP2007 wrote:

W3bbo wrote:
SEP2007 wrote:Try
Me.Richtextbox.Loadfile("thefile")
Catch ex as Exception
Msgbox ex.message
End Try

was reformmated as

'----------------------------------------------------------'
Try
       Me.Richtextbox.Loadfile("thefile")

                                     Catch Ex as Exception
                                     '*****************'
           
                                       Msgbox ex.message

                                     '*****************'

End Try
'----------------------------------------------------------'


Its a little over the top here but I'm just trying to get across a basic principle. That you could have more than just tabs as formatting.
And you could specify your own formating rules. And perhaps have different formatting rule (auto-formatting) for say, Events, Subs, Functions, For, While, etc.

Does that make sense ?


You can do all that with IDE Macros.


Ok thanks, can I do it in the VB editor ? Can I have the Macros working in the VB editor

Have been looking at it, I think i can.


Yes, you can.



Don't confuse C++/Preprocessor Macros with IDE Macros. One is a form of metaprogramming, the other is just automating IDE tasks (i.e. what you're trying to do)