Logo 
Search:

MS Office Forum

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds

Counting lines of code

  Asked By: Matilda    Date: Mar 24    Category: MS Office    Views: 1127
  

A simpel question, but I'm not certain if there's a simple answer.... Is
there an easy way to count the number of lines of code in a module? I
have an add-in that is expanding rapidly and I'd like to keep track of
how many lines of code it contains.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Bradley Evans     Answered On: Mar 24

Thisworkbook.VBProject.VBComponents("Module1").CodeModule.CountOfLines

but it includes blank lines  in the count

 
Didn't find what you were looking for? Find more on Counting lines of code Or get search suggestion and latest updates.




Tagged: