File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ Public Sub formatProject(vbaProject As VBProject)
189
189
Next
190
190
End Sub
191
191
192
- Public Sub format ()
192
+ Public Sub formatActiveCodePane ()
193
193
formatCode Application.VBE.ActiveCodePane.codeModule
194
194
End Sub
195
195
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ Public Sub formatVbProject(ByVal projectPath As String)
164
164
Formatter.formatProject project
165
165
MsgBox "Finished formatting code for: " & project.name & vbNewLine _
166
166
& vbNewLine _
167
- & "Did you know you can also format your code, while writing it, by typing 'application.Run ""format ""' in the immediate window?"
167
+ & "Did you know you can also format your code, while writing it, by typing 'application.Run ""formatActiveCodePane ""' in the immediate window?"
168
168
169
169
On Error GoTo 0
170
170
Exit Sub
You can’t perform that action at this time.
0 commit comments