Skip to content

Commit 694bb81

Browse files
yarickhilkoc
authored andcommitted
renamed public subroutine 'format' to 'formatActiveCodePane' to avoid hiding of excel's Format function
1 parent 7ddd716 commit 694bb81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/vbaDeveloper.xlam/Formatter.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Public Sub formatProject(vbaProject As VBProject)
189189
Next
190190
End Sub
191191

192-
Public Sub format()
192+
Public Sub formatActiveCodePane()
193193
formatCode Application.VBE.ActiveCodePane.codeModule
194194
End Sub
195195

src/vbaDeveloper.xlam/Menu.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Public Sub formatVbProject(ByVal projectPath As String)
164164
Formatter.formatProject project
165165
MsgBox "Finished formatting code for: " & project.name & vbNewLine _
166166
& 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?"
168168

169169
On Error GoTo 0
170170
Exit Sub

0 commit comments

Comments
 (0)