online 1
gast (50)

/ Forum / Tabellenkalkulation

TabellenkalkulationTabellenkalkulation

Fragevon wolfram vom 15.04.2019, 18:29 Options

Macro-Aufruf

Hallo!
Ich weiß, daß ich im EXCEL-Macro ein WINWORD-Macro aufrufen kann. Wer weiß die genaue Syntax?

Danke
Wolfram


Antwort schreiben

Antwort 1 von Beverly vom 16.04.2019, 07:48 Options

Hi Wolfram,

hier eine Möglichkeit

Sub CommandButton1_Click()
'   *****************************************************************************************
'   * Code 18/19.10.05: Hajo_Zi, Herbers Excel-Server (Hinweis von jinx); angepasst Beverly *
'   *****************************************************************************************
    Dim StDateiname As String
    StDateiname = InputBox("Bitte Dateinamen der Worddatei eingeben!")
    Dim appWord As Object
    If Dir(StDateiname) = "" Then
        MsgBox "Word-Dokument nicht gefunden"
    Else
        Set appWord = CreateObject("Word.Application")
        appWord.Documents.Open StDateiname
    End If
'   Word makro aufrufen
    appWord.Run "Einfue_ZA"
    appWord.Quit
    Set appWord = Nothing
End Sub


Bis später,
Karin

Antwort 2 von wolfram vom 16.04.2019, 21:35 Options

Hallo Karin,
Super - Danke
Wolfram

Ähnliche Themen

SelfCert für Excel-Macro
kvtv  31.03.2007 - 65 Hits - 2 Antworten

DoCmd.GoToRecord Macro zur Änderung in Tabelle
Booyeoo  03.06.2007 - 115 Hits - 11 Antworten

macro über einen command button
bambambigelow  11.08.2007 - 72 Hits - 3 Antworten

Macro zuweisen
gast89  23.03.2008 - 24 Hits - 1 Antwort

Hinweis

Diese Frage ist schon etwas älter, Sie können daher nicht mehr auf sie antworten. Sollte Ihre Frage noch nicht gelöst sein, stellen Sie einfach eine neue Frage im Forum..

Neue Einträge

Version: supportware 1.9.150 / 10.06.2022, Startzeit:Thu Jan 8 21:07:44 2026