Prem Ramachandran
New Member
Hi,
I am trying to create a progress bar for a code. The challenge is that there is no loop and its a sequence of steps. My idea was to calculate the progress based on the how many lines of code has been executed i.e. the line number of the active code / total number of lines.
I found that we can get the total number of lines using "Application.VBE.ActiveCodePane.CodeModule.CountofLines", but I am not able to get the line number of the active line. Hope this makes sense and there is some solution.
Regards
Prem
I am trying to create a progress bar for a code. The challenge is that there is no loop and its a sequence of steps. My idea was to calculate the progress based on the how many lines of code has been executed i.e. the line number of the active code / total number of lines.
I found that we can get the total number of lines using "Application.VBE.ActiveCodePane.CodeModule.CountofLines", but I am not able to get the line number of the active line. Hope this makes sense and there is some solution.
Regards
Prem