Extremly stupid VBA question
-
Why does this not work? Dim appword As Object Public Sub start() Set appword = CreateObject("Word.Application") If appword Is Nothing Then MsgBox "appword = Nothing" Else appword.Visible = 1 End If MsgBox "Test" MsgBox "Test2" End Sub --- appword is allways nothing, CreateObject does not work... Is there any hidden security setting in Office 2000 I dont know? bb |~ bb
-
Why does this not work? Dim appword As Object Public Sub start() Set appword = CreateObject("Word.Application") If appword Is Nothing Then MsgBox "appword = Nothing" Else appword.Visible = 1 End If MsgBox "Test" MsgBox "Test2" End Sub --- appword is allways nothing, CreateObject does not work... Is there any hidden security setting in Office 2000 I dont know? bb |~ bb
-
Why does this not work? Dim appword As Object Public Sub start() Set appword = CreateObject("Word.Application") If appword Is Nothing Then MsgBox "appword = Nothing" Else appword.Visible = 1 End If MsgBox "Test" MsgBox "Test2" End Sub --- appword is allways nothing, CreateObject does not work... Is there any hidden security setting in Office 2000 I dont know? bb |~ bb
-
NOt necessarily - could be a member variable of his form, and not just a local - maybe it needs to be used by other functions / subs "Now I guess I'll sit back and watch people misinterpret what I just said......" Christian Graus At The Soapbox