In Word
VBA (ThisDocument - Modul)
Function GetMyGlobalVar() As String
GetMyGlobalVar = "Hello World"
End Function
In Access VBA
Dim d As Word.Document
Set d = GetObject("d:\MyDocs\Word\test\GlobalVar.doc")
MsgBox d.GetMyGlobalVar
d.Close 0
Krgrds,
Perry
Quote:
> Hallo NG,
> wie kann ich eine Variable deklarieren, dass ich sie
> z.B. in Word setze und in Access lese?
> Felix