PC Review


Reply
Thread Tools Rate Thread

Constants Tied to Arguments in Methods

 
 
Ronald Dodge
Guest
Posts: n/a
 
      13th Nov 2007
I would like to know how can I type constants to a particular argument in
methods similar to like how the constants below are tied to the last
argument of the InStr function:

vbBinaryCompare
vbDatabaseCompare
vbTextCompare

I have a method within VBA that I would love to be able to do the same thing
with, rather than having to put constants in a separate location or having
to hard code the values.

--

Sincerely,

Ronald R. Dodge, Jr.
Master MOUS 2000


 
Reply With Quote
 
 
 
 
JP
Guest
Posts: n/a
 
      13th Nov 2007
Hope I'm getting this right. Sounds like you are look for Enums?

http://www.cpearson.com/excel/Enums.htm


HTH,
JP

On Nov 13, 4:12 pm, "Ronald Dodge" <ronald.do...@sonoco.com> wrote:
> I would like to know how can I type constants to a particular argument in
> methods similar to like how the constants below are tied to the last
> argument of the InStr function:
>
> vbBinaryCompare
> vbDatabaseCompare
> vbTextCompare
>
> I have a method within VBA that I would love to be able to do the same thing
> with, rather than having to put constants in a separate location or having
> to hard code the values.
>
> --
>
> Sincerely,
>
> Ronald R. Dodge, Jr.
> Master MOUS 2000



 
Reply With Quote
 
Ronald Dodge
Guest
Posts: n/a
 
      13th Nov 2007
That did it. Thank you.

--

Sincerely,

Ronald R. Dodge, Jr.
Master MOUS 2000

"JP" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hope I'm getting this right. Sounds like you are look for Enums?
>
> http://www.cpearson.com/excel/Enums.htm
>
>
> HTH,
> JP
>
> On Nov 13, 4:12 pm, "Ronald Dodge" <ronald.do...@sonoco.com> wrote:
>> I would like to know how can I type constants to a particular argument in
>> methods similar to like how the constants below are tied to the last
>> argument of the InStr function:
>>
>> vbBinaryCompare
>> vbDatabaseCompare
>> vbTextCompare
>>
>> I have a method within VBA that I would love to be able to do the same
>> thing
>> with, rather than having to put constants in a separate location or
>> having
>> to hard code the values.
>>
>> --
>>
>> Sincerely,
>>
>> Ronald R. Dodge, Jr.
>> Master MOUS 2000

>
>



 
Reply With Quote
 
JP
Guest
Posts: n/a
 
      14th Nov 2007
Glad to help!

--JP

On Nov 13, 4:49 pm, "Ronald Dodge" <ronald.do...@sonoco.com> wrote:
> That did it. Thank you.
>
> --
>
> Sincerely,
>
> Ronald R. Dodge, Jr.
> Master MOUS 2000
>
> "JP" <jp...@sterlingtesting.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > Hope I'm getting this right. Sounds like you are look for Enums?

>
> >http://www.cpearson.com/excel/Enums.htm

>
> > HTH,
> > JP

>
> > On Nov 13, 4:12 pm, "Ronald Dodge" <ronald.do...@sonoco.com> wrote:
> >> I would like to know how can I type constants to a particular argument in
> >> methods similar to like how the constants below are tied to the last
> >> argument of the InStr function:

>
> >> vbBinaryCompare
> >> vbDatabaseCompare
> >> vbTextCompare

>
> >> I have a method within VBA that I would love to be able to do the same
> >> thing
> >> with, rather than having to put constants in a separate location or
> >> having
> >> to hard code the values.

>
> >> --

>
> >> Sincerely,

>
> >> Ronald R. Dodge, Jr.
> >> Master MOUS 2000- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Arguments to methods passed by control invocation Harlan Messinger Microsoft C# .NET 12 8th Jan 2010 02:57 AM
Arguments for Class Object Methods ... =?Utf-8?B?U3JlZWRoYXI=?= Microsoft Access VBA Modules 5 20th Aug 2006 07:17 PM
Re: VC++2003 Bug: Pointer-to-member type template arguments instantiated with virtual methods always call through first vtable slot Felix I. Wyss Microsoft VC .NET 2 25th Apr 2005 01:16 AM
Using methods in functions with arguments. =?Utf-8?B?QmFydERlc2M=?= Microsoft Excel Programming 2 10th Feb 2005 09:24 PM
Array literals/constants as default arguments in functions? Urs van Binsbergen Microsoft VB .NET 2 3rd Sep 2003 02:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 AM.