Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there anyway to create static methods in VBA Class Modules. By this I
mean methods that can be accessed from outside the Class Module without making an instance of the object. As a more concrete example: I have a class module to hold a Time (a value for hour, minute, and AM/PM). I declare various variables that are instances of the Time object. I want to see if one time is before another but I do not necessarily want to have to create an instance of a Time Object to do that. (I want to be able to call functions by using Time.x as you can do in regular Methods). I know this is possible in the C# and C++ frameworks through the use of Static Methods. Is it possible in VBA? Thanks for any help. --- Message posted from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Select method of Range class failed" Error | Excel Discussion (Misc queries) | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Run-time error "1004" Select method of range class failed | Excel Discussion (Misc queries) | |||
VBE - Possible to have one of five modules in a VB project to be "default"? | Excel Discussion (Misc queries) | |||
"Unable to set the Formula property of the Series class" with a tw | Charts and Charting in Excel |