Thanks, I am now using the Set object to macro functions in both situations based on the info you sent me.
This is just a sample:
Dim objAppName, objSearchString
'Set varibles
Set objAppName = Application.Macros(vbldMacroTemporary).Item("TMP_A PP_NAME")
Set objSearchString = Application.Macros(vbldMacroSystem).Item("LASTSTEP _OUTPUT")
'Search through last output.
If InStr(1,UCase(objSearchString.Value), UCase(objAppName.Value)) > 0 Then
Application.Macros(vbldMacroTemporary).add "TMP_UNINSTALL_CHECK", "TRUE"
End If
This seems to work in both script actions and events, unless theres something Im missing.
|