Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
Tim[_9_] Tim[_9_] is offline
external usenet poster
 
Posts: 2
Default 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
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2007 crashes RB Microsoft Word Help 1 December 8th 09 01:40 PM
Office 2000 in Vista crashes Takistan Microsoft Word Help 1 December 8th 09 05:33 AM
Word 2007 crashes in Vista genie56 Microsoft Word Help 1 June 16th 09 02:01 AM
Word 2007 Crashes Meryl Microsoft Word Help 1 February 15th 08 12:01 AM
Word 2007 Crashes darklyndsea Microsoft Word Help 8 July 9th 07 01:42 PM


All times are GMT +1. The time now is 02:34 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"