Hi,
I am trying to run the below VB script to automate the refresh for my PAX template in C:\Book1.xlsm where I have simple DBRW formulas to pull the data.
I have imported the required .bas and .cls files in C:\Book1.xlsm and saved it.
' Start Excel in batch mode
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = False
objExcel.ScreenUpdating = False
objExcel.DisplayAlerts = False
'Open a workbook that has IBM Cognos data in it.
Set objWorkbook = objExcel.Workbooks.Open("C:\Book1.xlsm")
' Call the wrapper macros
objExcel.Run "Logon", "<pax URL>","<Login ID>", "<Password>", "<CAM NAMESPACE>"
objExcel.Run "RefreshAllData"
objExcel.Run "UnlinkAllData"
objExcel.Run "Logoff"
objExcel.Run "WriteTraceLog", "C:\AutmationLogFromString.log", objExcel.Run("TraceLog")
objWorkbook.Save
objWorkbook.Close
objExcel.Quit
I get the below pop up for 3 times and I don't see the template is refreshed with the data. Nothing in trace log.
Please let me know if I am missing something.
PAX Version:55
PAW Version:54