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

Export als txt - File

Forumthread: Export als txt - File

Export als txt - File
18.09.2006 18:45:34
ticonhh
Hallo liebes Forum,
möchte gerne ein Sheet als txt-File exportieren. Gibt es in VBA dafür eine
Möglichkeit ?
Dank und Gruss
ticonhh
Anzeige

3
Beiträge zum Forumthread
Beiträge zu diesem Forumthread

Betreff
Datum
Anwender
Anzeige
AW: Export als txt - File
18.09.2006 19:04:13
IngGi
Hallo ,
ohne VBA:
Datei-Speichern unter-bei "Dateityp" "Text(Tabstopp-getrennt)(.txt)" wählen. OK. Fertig.
mit VBA:
ActiveWorkbook.SaveAs Filename:="C:\Mappe1.txt", FileFormat:=xlText
Gruß Ingolf
AW: Export als txt - File
18.09.2006 19:31:14
ticonhh
Hallo,
vielen Dank für Deine tollen Tipps - leider funktioniert es nicht mit..
ActiveWorkbook.Worksheet("xxx").SaveAs Filename:="C:\export.txt", FileFormat:=xlText
Wie kann ich an dieses Problem rangehen.
Dank und Gruss
ticonhh
Anzeige
AW: Export als txt - File
18.09.2006 19:48:46
IngGi
Hallo ,
du musst das Tabellenblatt erst in eine neue Mappe kopieren. Versuch's mal so:
Application.DisplayAlerts = False
ActiveWorkbook.Worksheets("xxx").Copy
Workbooks(Workbooks.Count).SaveAs Filename:="C:\export.txt", FileFormat:=xlText
ActiveWorkbook.Close False
Application.DisplayAlerts = True
Gruß Ingolf
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