Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Constants Tied to Arguments in Methods
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Constants Tied to Arguments in Methods
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" 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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Constants Tied to Arguments in Methods
That did it. Thank you.
-- Sincerely, Ronald R. Dodge, Jr. Master MOUS 2000 "JP" wrote in message oups.com... 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" 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 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Constants Tied to Arguments in Methods
Glad to help!
--JP On Nov 13, 4:49 pm, "Ronald Dodge" wrote: That did it. Thank you. -- Sincerely, Ronald R. Dodge, Jr. Master MOUS 2000 "JP" wrote in message oups.com... 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" 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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
email addresses tied to a spread sheet | Excel Discussion (Misc queries) | |||
Microsoft Query with more than one parameter gets tied up | Excel Discussion (Misc queries) | |||
YES/NO Button - Tied to Macro Functions | Excel Programming | |||
Pictures tied to rows. | Excel Programming | |||
Summation of cells tied to Checkboxes | Excel Programming |