PerformAction

Description

PerformAction() performs one of the following operations: POST, UNPOST, SUBMIT, UNSUBMIT, APPROVE, REJECT or DELETE.

Syntax

Function PerformAction(

action As String

) As Long

Parameters

action : An input argument. Value is one of the following:

HFM_JOURNAL_ACTION_POST or

HFM_JOURNAL_ACTION_UNPOST or

HFM_JOURNAL_ACTION_SUBMIT or

HFM_JOURNAL_ACTION_UNSUBMIT or

HFM_JOURNAL_ACTION_APPROVE or

HFM_JOURNAL_ACTION_REJECT or

HFM_JOURNAL_ACTION_DELETE.

These are defined in HFMJournalVBA.bas.

Return Value

Returns 0 if successful; otherwise, returns the appropriate error code.

Example

Sub TestPerformAction()
   Set jObj = New JournalVBA
   
   retVal = jObj.PerformAction(HFM_JOURNAL_ACTION_UNSUBMIT)
   If retVal = 0 Then
      Debug.Print "PerformAction Succeeded."
   Else
      Debug.Print "PerformAction Succeeded!!!"
   End If
End Sub