Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ina ina is offline
external usenet poster
 
Posts: 120
Default VBA - createobject - If

yes it is cool thank you because it works but when I try to call this
sub. I have an error run-time 91 error run-time error 91 object
variable or with block variable not set

do you know why?

Option Explicit

Sub test()

Dim oExec As Object

Set oExec = OpenPHObject()

Application.Wait (Now + TimeValue("0:00:10"))

Call CHObject(oExec)

End Sub


Function ClosePHObject(oExec As Object)

Dim WshShell As Object

'oExec.Quit
oExec.Terminate
Set WshShell = Nothing
Set oExec = Nothing

End Function

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To CreateObject In VB To AutoCad KinCheong Low via OfficeKB.com Excel Programming 0 January 20th 05 03:43 AM
Createobject (repost) keepITcool Excel Programming 0 July 14th 04 03:09 PM
CREATEOBJECT Using VB Karthik[_2_] Excel Programming 2 June 16th 04 09:08 PM
Difference between NEW and CREATEOBJECT? Mark[_36_] Excel Programming 3 February 19th 04 02:26 PM
Templates and CreateObject John Excel Programming 1 October 29th 03 01:07 PM


All times are GMT +1. The time now is 12:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"