RealityCheck
An overview of how the RealityCheck works and should be used.
RealityCheck
RealityCheck Overview
A Collection of helpful search Functions for checking modules, collections and dynamic string subsections.
IsClassModuleLoaded
Used to check if a workbook has a class module installed. Defaults to current active workbook.
1
Public Function IsClassModuleLoaded(name As String, Optional wb As Workbook) As Boolean
To Call:
1
moduleCheck = RealityCheck.IsClassModuleLoaded ("TargetModule")
Returns
1
Boolean
IsStandardModuleLoaded
Used to check if a workbook has a standard module installed. Defaults to current active workbook.
1
Public Function IsStandardModuleLoaded(name As String, Optional wb As Workbook) As Boolean
To Call:
1
moduleCheck = RealityCheck.IsStandardModuleLoaded ("TargetModule")
Returns
1
Boolean
IsAnyModuleLoaded
Used to check if a workbook has a module installed. Defaults to current active workbook.
1
Public Function IsAnyModuleLoaded(name As String, Optional wb As Workbook) As Boolean
To Call:
1
moduleCheck = RealityCheck.IsAnyModuleLoaded ("TargetModule")
Returns
1
Boolean
InCollection
Used to check if a collection contains a string key.
1
Public Function InCollection(col As Collection, key As String) As Boolean
To Call:
1
collectionCheck = RealityCheck.InCollection(myCollection, "myKey")
Returns:
1
Boolean
ReturnBetweenElements
Used to find the substring between keys.
1
Public Function ReturnBetweenElements(sConCat As String, sFirstElement As String, sSecondElement As String) As String
To Call:
1
stringBetweenKeys = RealityCheck.ReturnBetweenElements("garbageHello World!data", "garbage", "data")
Returns:
1
"Hello World!"
Link to Module
This post is licensed under CC BY 4.0 by the author.