> When running _Refactor/Extract Method_, declarations of variables that are only used in the new method should be removed instead of leaving them for a later clean up in _Code Inspections_.
When this code is refactored:
Public Sub test1()
Dim i As Integer
Dim j As Integer
i = 10
For j = 1 To i
MsgBox j
Next
End Sub
it becomes this:
Public Sub test1()
Dim i As Integer
Dim j As Integer
i = 10
Method