Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2007 (on Vista) crashes when using CreateObject in VBA
Can anyone help with this? I think it may be the config of my laptop,
but don't know what specifically. I'm trying to open an app in VBA using CreateObject but Word crashes every time with a 'Microsoft Office Word has stopped working' message. Sample code he- Sub excelcalltest() Dim objExcel On Error GoTo Err Set objExcel = CreateObject("Excel.Application") - it crashes once it gets to this line objExcel.Visible = True Err: MsgBox Err.description End Sub I'm not a programmer but know basics. I don't need anything ticked in Tools/References do I? Could it be permissions in some way? Cheers Tim |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Word 2007 (on Vista) crashes when using CreateObject in VBA
Further info on this:-
Seems the problem relates to late binding in Word 2007, as the early and late binding version of this script work in Outlook VBA Tim |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Word 2007 crashes | Microsoft Word Help | |||
Office 2000 in Vista crashes | Microsoft Word Help | |||
Word 2007 crashes in Vista | Microsoft Word Help | |||
Word 2007 Crashes | Microsoft Word Help | |||
Word 2007 Crashes | Microsoft Word Help |