Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default VBE question

I know you can do:

strProcName = .ProcOfLine(lCodeLine, lProcType)

and the variable lProcType will tell you then if the procedure is a
Sub/Function or
a Property Get or Property Let or Property Set, with the values 0 to 3.
It won't differentiate though between a Sub or a Function.
I can do this, but it gets a bit messy.
What is the simplest way to do this?

RBS


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default VBE question

Bart,

The only way I have found to do it is to parse the procedure declaration
looking for Sub/Function, which is probably what you are doing.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"RB Smissaert" wrote in message
...
I know you can do:

strProcName = .ProcOfLine(lCodeLine, lProcType)

and the variable lProcType will tell you then if the procedure is a
Sub/Function or
a Property Get or Property Let or Property Set, with the values 0 to 3.
It won't differentiate though between a Sub or a Function.
I can do this, but it gets a bit messy.
What is the simplest way to do this?

RBS




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default VBE question

Hi Bob,

Yes, that is what I do, although I thought it was a bit simpler to look at
End Sub etc.
Shame they didn't differentiate this in ProcType.

RBS

"Bob Phillips" wrote in message
...
Bart,

The only way I have found to do it is to parse the procedure declaration
looking for Sub/Function, which is probably what you are doing.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"RB Smissaert" wrote in message
...
I know you can do:

strProcName = .ProcOfLine(lCodeLine, lProcType)

and the variable lProcType will tell you then if the procedure is a
Sub/Function or
a Property Get or Property Let or Property Set, with the values 0 to 3.
It won't differentiate though between a Sub or a Function.
I can do this, but it gets a bit messy.
What is the simplest way to do this?

RBS





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good davegb Excel Programming 1 May 6th 05 06:35 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 0 April 27th 05 07:46 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 23 April 23rd 05 09:26 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good you [email protected] Excel Programming 0 April 22nd 05 03:30 PM


All times are GMT +1. The time now is 07:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"