Hello,
please I need your help.
I use a code from your Forum but I get a lot of error messages.
If I start the code the first error message is:
"The PastSpecial Methode of the Range-Objects can't execute"
If I push debuggen then has the Paste:=xlPasteValues the Value -4163
The Business Object report is open and I see the data.
What make I wrong? Sorry for my bad english, I'm a German.
Thank you for your help!
Ken
please I need your help.
I use a code from your Forum but I get a lot of error messages.
Code:
Dim BoApp As busobj.Application, BODoc As busobj.Document, BORep As busobj.Report
Dim i, rpt
Set BoApp = CreateObject("BusinessObjects.application")
With BoApp
.LoginAs "xxxxxx", "xxxxxx"
.Visible = True
.Documents.Open ("c:\1_Sales_from_SMARTS_11_daily.rep")
' .Documents.Open ("Report Path & Name.rep")
With .ActiveDocument
'.Refresh
i = 1
For Each rpt In .Reports
rpt.Activate
'use the copyALL function
BoApp.CmdBars(2).Controls("&Edit").Controls(20).Execute
'paste to excel
Sheets(i).Range("A1").PasteSpecial Paste:=xlPasteValues
i = i + 1
Next
End With
End With
'set variables to nothing
Set BoApp = Nothing
Set BODoc = Nothing
If I start the code the first error message is:
"The PastSpecial Methode of the Range-Objects can't execute"
If I push debuggen then has the Paste:=xlPasteValues the Value -4163
The Business Object report is open and I see the data.
What make I wrong? Sorry for my bad english, I'm a German.
Thank you for your help!
Ken