Hi
Is there any approach to determine the number of lines of code within a macro. I’m looking something equivalent to the VB code below
With ActiveWorkbook.VBProject
For i = .VBComponents.count To 1 Step -1
Dim loc As Integer
loc = .VBComponents(i).CodeModule.CountOfLines
If loc > 0 Then
MsgBox (loc)
End If
Next i
End With
Thanks
Kevin