Zweites Excel mit SAP Biw start
05.09.2007 11:29:41
lotharp
Hallo alle miteinand,
Ich versuche mir eine Biw-start routine zu bauen die mir ein zweites Excel öffnet, damit ich in meinem "ersten" Excel normal weiterarbeiten kann.
Ich habe gedacht dieser weg würde ausreichen:
Sub BIWSTARTEN()
Dim appXL As Excel.Application
Dim wkb As Workbook
Set appXL = New Excel.Application
Set wkb = appXL.Workbooks.Open(Filename:="C:\Programme\SAP\FrontEnd\Bw\sapbex.xla"). _
RunAutoMacros Which:=xlAutoOpen
'Set wkb = appXL.Workbooks.Add(1)
appXL.Visible = True
Workbooks.Open(Filename:="C:\Programme\SAP\FrontEnd\Bw\sapbex.xla"). _
RunAutoMacros Which:=xlAutoOpen
End Sub
Set wkb funktioniert so nicht, warum?! (Alles rot !)
Der Ausdruck nach appXL.Visible = True funktioniert, aber eben in meinem URSPRUNGSEXCEL.
WAs mache ich falsch?
Hoffe ihr könnt helfen!?
Vielen DAnk schonmal im Vorraus und Grüsse aus Köln
Lothar