I wrote a procedure to generate a bunch of standard code I use within MS-Access for a class module. I didn't worry about formatting the code (indenting) that was generated into the text file. However, when I actually put the code into the class module I would like it to indent propery for readablity. Is there a way to get code to 'indent' when it is pasted into the code editor? Or once the code is in the code editor window, can I select it and tell it to auto-indent or auto-format somehow?
For example.... if part of the code I paste into the class module looks like this...
I would like to end up with something more like this...
For example.... if part of the code I paste into the class module looks like this...
Code:
Public Property Let CustomerID(var As Long)
lngCustomer = var
End Property
Public Property Get CustomerID() As Long
CustomerID = lngCustomerID
End Property
I would like to end up with something more like this...
Code:
Public Property Let CustomerID(var As Long)
lngCustomer = var
End Property
Public Property Get CustomerID() As Long
CustomerID = lngCustomerID
End Property