-
Notifications
You must be signed in to change notification settings - Fork 0
pbPackage Overview
``
ABOUT pbPackage
Get ButtonName() As String
Get OnErrCancelNav() As Boolean
Let OnErrCancelNav(vl As Boolean)
If set to True (Default = False), any navigation to other Worksheets is cancelled if an error occurs.
Get ErrorSheet() As Worksheet
Get PackageCreated() As Date
Get RestoreDefaultState() As Boolean
Let RestoreDefaultState(restDefault As Boolean)
Get RunTimeSeconds() as Double
Get IsManaged() As Boolean
Let ActionType(InitAction As InitActionEnum)
Get ActionType() As InitActionEnum
Set Or Get the type of action that originated the package (iaAutoCode, iaEventResponse, iaButtonClick, iaManual)
Get BypassRequiredAction() As Boolean
Let BypassRequiredAction(byPassReqActn As Boolean)
**NOTE: **Using the 'BypassRequireidAction' is ignored unless both the following are true:
-
You have set the value of this Private Const in the pbPackage class equal to True:
Private Const CanRunReqAction As Boolean = True
-
You code written that returns a boolean (TRUE) if successful that can be called from within the
[RunRequiredAction](#RunRequiredAction)Function.
Get CanHideSource() As Boolean
Let CanHideSource(vl As Boolean)
By default, this property is set to True. If True, and part of the pack includes navigating to a different worksheet, the SourceSheet will be hidden after the Target worksheet is activated.
See Also ExecuteCallByName
Get ReturnResult() As Boolean
Let ReturnResult(rtRslt As Boolean)
Code can be executed as part of a package. There are 2 'types' of code a package can execute:
-
A Public Sub/Function that is defined in a public module.
1.1 A Return Value is NOT availabe on this type of call
-
A Public Sub/Function that is defined in an private class and that object is available at the time the package is configured.
2.1 For example if you have a private class called
Invoicerand that is avaialable through a Public Property in a public module calledmyInvoicerthenmyInvoicercan be used as the 'call' object, and a Function/Sub in theInvoicerclass can bee the call 'method name' 2.2 If the Method being called is a Function, then the result of the call can be stored in thisPackageResultproperty if this (ReturnResult) property is set to True.
Get PackageResult() As Variant
Get Target() As Worksheet
Get FailedPackage() As Boolean
Get TargetSheet() As Worksheet
Get IgnoreCleanup() As Boolean
Let IgnoreCleanup(ignore As Boolean)
Get ProtectTargetSheet() As Boolean
Let ProtectTargetSheet(protTarget As Boolean)
Function ExecuteCallByName() As Boolean
Function RunRequiredAction
Function ModifyExecutionState(adjust As ModifySuspendState)
Function UnprotectSheets(ParamArray unprotSheets() As Variant)
Function OnErrorRedirect(ErrorSheet As Worksheet)
Function SetTargetSheet(tarSheet As Worksheet)
For my Reddit Friends, You'll have to wait a bit before I provide my Package Manager :-)
Function SetManager(pkgMgr As Object)
Function SetSourceSheet(srcSheet As Worksheet)