VBA: offenes Wort von Excel

Ich kann Word nicht über ein Excel-Makro (Office XP) öffnen. Wenn ich diesen Code verwende, wird er online gestopptSet wdDoc = wordapp.Documents.Open(polozka.ShortPath) und Programm friert ein. Wenn ich benutzeSet wdDoc = GetObject(polozka.ShortPath) Anstelle dieser Zeile stoppt das Programm hierWith wdDoc.Selection with "Objekt unterstützt diese Eigenschaft nicht ..." error

Dim wordapp As Word.Application
Dim wdDoc As Word.Document

Set fso = CreateObject("Scripting.FileSystemObject")
Set files = fso.GetFolder("C:\path").Files       
Set wordapp = CreateObject("Word.Application")
For Each polozka In files
    Set wdDoc = wordapp.Documents.Open(polozka.ShortPath)
    wordapp.Visible = True
    With wdDoc.Selection
        .HomeKey Unit:=6
        .Find.Text = "Název (typ):"
        .Find.Wrap = wdFindContinue
        ...
    End With
    ...
    wordapp.Quit
    Set wordapp = Nothing    
Next

Antworten auf die Frage(3)

Ihre Antwort auf die Frage