Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A challenge with DocOpen Macro

Status
Not open for further replies.

sboon

Programmer
Mar 13, 2003
1
NL
HI,

The DocOpen macro will run when you open a PPreport or cube. Depending on the name of the cube (linked to a random report) i want to do something.

My problem is that when the docopen macro is activated and i want to know the name of the cube I get an error.
When i execute this statement in the Macro:
Code:
Set objPPRapport = GetObject(, "CognosPowerPlay.Report")
I am receiving the Object Creation Failed error (429).
It seems logical because the Report hasn't opened yet (but i need the name of the cube). Is there a way to resolve this, in other words is there a way to resolve the name of the report/cube which is going to be opened. The afterdocopen macro is not an option, because this macro needs to have the same name as the report and it is not managed centrally. Thanks Steven Boon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top