Thanks to drlex (via the archives) , I have the following code to open cognos from excel:
Set objPPRep = CreateObject("CognosPowerPlay.Report"
objPPRep.Open "K:\PPreports\dailysales.PPR"
objPPRep.SaveAs "K:\xl\dailysales", 4 'Excel
objPPRep.Close
Background - we have just bought another company who use Cognos. We don't. At the moment we are trying to integrate but senior managers still want information. Ergo, I have to find a way of getting cognos powerplay data into excel. I know it can be done manually by doing save as - excel but I'm an automation freak and the thought of having to manually save a bunch of reports sends shivers down my spine ;-)
I am sure that the code above works but unfortunately, it would appear that the laptop I have been given to work on this has cognos but not the DLL files necessary to enable me to make a reference to it from excel (VBA). Does anyone know if
a: I can download the DLL files from somewhere
or
b: they could send me a copy of the DLLs
This particular machine is running XL 97 (SR 1) on win2000
TIA
Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244
Set objPPRep = CreateObject("CognosPowerPlay.Report"
objPPRep.Open "K:\PPreports\dailysales.PPR"
objPPRep.SaveAs "K:\xl\dailysales", 4 'Excel
objPPRep.Close
Background - we have just bought another company who use Cognos. We don't. At the moment we are trying to integrate but senior managers still want information. Ergo, I have to find a way of getting cognos powerplay data into excel. I know it can be done manually by doing save as - excel but I'm an automation freak and the thought of having to manually save a bunch of reports sends shivers down my spine ;-)
I am sure that the code above works but unfortunately, it would appear that the laptop I have been given to work on this has cognos but not the DLL files necessary to enable me to make a reference to it from excel (VBA). Does anyone know if
a: I can download the DLL files from somewhere
or
b: they could send me a copy of the DLLs
This particular machine is running XL 97 (SR 1) on win2000
TIA
Rgds, Geoff
[blue]Si hoc signum legere potes, operis boni in rebus Latinus alacribus et fructuosis potiri potes![/blue]
Want the [red]best[/red] answers to your questions ? faq222-2244