Fire_Chief
Well-known Member
- Joined
- Jun 21, 2003
- Messages
- 693
- Office Version
- 365
- Platform
- Windows
I have MANY MANY dim statements in my code and I wrote them like below
Dim a, x, c, f
As I learn code I realize I should write them more like this :
Dim a as string
Dim x as integer ….. and so on.
Is there a vba code that will find the commas in the code, put it on the next line and change it to Dim so?
Dim a, x, c, f will look like:
Dim a
Dim x
Dim c
Dim f
This would make it SO much easier for me to find what kind of variable it is and change it.
Dim a, x, c, f
As I learn code I realize I should write them more like this :
Dim a as string
Dim x as integer ….. and so on.
Is there a vba code that will find the commas in the code, put it on the next line and change it to Dim so?
Dim a, x, c, f will look like:
Dim a
Dim x
Dim c
Dim f
This would make it SO much easier for me to find what kind of variable it is and change it.