une


I have finished a large program and the indentation is a little messy and is too aligned vertically, its a big rectangular block. Is there tool on VBA under MSWord 2002 that will automatically indent all statements nicely in a chunk of code For example, nested loops will be progressively indented and then "outdented" so vertical alignment of related statements is attained and the nesting structures can be followed more easily.


Re: Auto code indent tidying

sjoo


I know an addin named SmartIndenter that is a utility to tidy up VBA code by rebuilding the indentation of each line.

It indent code within control structure such as For~Next,Do~Loop,If~End If and also indent code within procedures,module and project.

plz visit http://www.oaltd.co.uk/Indenter/Default.htm

I hope that this would be what you're looking for.

best regards,

sjoo






Re: Auto code indent tidying

une

Thanks, I will try it.




Re: Auto code indent tidying

une

Thanks. I downloaded the program and it installed without a hitch. It works really well. It is exactly what I was after. Seems strange that VBA does not have such a tool included. It is a basic requirement when coding.