thanask
Technical User
- Oct 27, 2002
- 21
Can anyone please help me. I am running the following macro and it throws the following error messgage.
Sub Main ()
Dim objImpApp as object
Dim objImpRep as object
On Error GoTo ErrorHandler
Set objImpApp = Createobject("CognosImpromptu.Application"
ObjImpApp.OpenCatalog "C:\Catalog.cat", "Creator"
Set objImpRep = objImpApp.OpenReport ("C:\Report.imr"
objImpRep.RetrieveAll
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
Final:
Exit Sub
ErrorHandler:
Resume Final
End Sub
Compiling SAMPLE.MAC
SAMPLE.MAC(27) W--2030: Label 'ErrorHandler' is missing
SAMPLE.MAC(27) W--2030: Label 'Final' is missing
2 Errors and 0 Warnings in SAMPLE.MAC
Thanks in advance,
Kumar
Sub Main ()
Dim objImpApp as object
Dim objImpRep as object
On Error GoTo ErrorHandler
Set objImpApp = Createobject("CognosImpromptu.Application"
ObjImpApp.OpenCatalog "C:\Catalog.cat", "Creator"
Set objImpRep = objImpApp.OpenReport ("C:\Report.imr"
objImpRep.RetrieveAll
objImpApp.Quit
Set objImpRep = Nothing
Set objImpApp = Nothing
Final:
Exit Sub
ErrorHandler:
Resume Final
End Sub
Compiling SAMPLE.MAC
SAMPLE.MAC(27) W--2030: Label 'ErrorHandler' is missing
SAMPLE.MAC(27) W--2030: Label 'Final' is missing
2 Errors and 0 Warnings in SAMPLE.MAC
Thanks in advance,
Kumar