Anzeige
Anzeige
HERBERS
Excel-Forum (Archiv)
20+ Jahre Excel-Kompetenz: Von Anwendern, für Anwender
Anzeige
Inhaltsverzeichnis

Excel-Datei aus Word heraus erstellen

Forumthread: Excel-Datei aus Word heraus erstellen

Excel-Datei aus Word heraus erstellen
08.04.2019 14:18:04
Heide
hallo zusammen,
ich möchte gern aus Word heraus eine Exceldatei anlegen. Das funktioniert so weit, aber ich kann diese Datei später aus dem Windowsverzeichnis nicht öffnen.
Weiß einer Rat?
Sub test()
Dim xlApp As Object, xlMappe As Object, xlSheet As Object
Set xlApp = CreateObject("Excel.Application")
Set xlMappe = xlApp.Workbooks.Add
Set xlSheet = xlMappe.Worksheets(1)
xlSheet.Name = "Daten"
xlMappe.SaveAs FileName:=ActiveDocument.Path & "\test", _
FileFormat:=xlNormal
xlMappe.Close
xlApp.Quit
Set xlApp = Nothing
Set xlMappe = Nothing
Set xlSheet = Nothing
End Sub

Anzeige

1
Beitrag zum Forumthread
Beitrag zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
Das Problem dürfte hier...
08.04.2019 14:43:28
Case
Hallo, :-)
... liegen: ;-)
FileFormat:=xlNormal
Nimm...
FileFormat:=xlWorkbookNormal
Bzw. ohne Verweis auf die Bibliothek:
FileFormat:=-4143
Siehe hier:
XlFileFormat-Enumeration (Excel)...
Servus
Case

Anzeige
Anzeige
Anzeige
Live-Forum - Die aktuellen Beiträge
Datum
Titel
14.05.2026 13:31:09
14.05.2026 09:50:42
13.05.2026 19:14:18