Hi everyone Im using Business Objects 6.5 Service Pack 2,
Please someone help me its urgent, im at such a deadend!
I have over 40 reports to run and will take some hours over night to refresh. I am automating the whole process using Macros; Open, Refresh, SaveAs and Close then move on. I have this working apart from 1 thing.
Problem is each Report has Prompts! and requires User input for the Reports to continue to refresh.
The prompts are all same for all the Reports:
‘Current Month’
‘This Year’
‘Last Year’
I can use a variable to populate these at the start but how do i get these variables into the Prompts? What is the Macro Code? Please help!!!
Thanks so much for the Links, i got exactly what i needed, this fills in the Prompt and then refeshes then saves.
cheers Marek
Private Sub Document_Open()
'Get through the Prompts and refresh
Application.Interactive = False
ThisDocument.Variables.Item("Year").Value = "2008"
ThisDocument.Refresh
Application.Interactive = True
'Save the Document now it is refreshed
Me.Save
'Save the Document as a PDF
Me.SaveAs ("...\Document2.pdf")
End Sub