Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've been using Excel and VBscript to retreive and post information to
another program (Exceed's Hummingbird) When I start the script I use to following to allow access to Hummingingbird; Dim HostExplorer As Object Dim tn3470 As Object Set HostExplorer = CreateObject("HostExplorer") ' Initialize HostExplorer Object Set tn3270 = HostExplorer.Hosts(0) ' Set object for current session I use this because it's what I was told to use. My question? How do I know that HostExplorer is the name use to define the Object? How do I determine the right name to use for another program to define it for an Object? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() One way is to add the program to the references Tools | References i VBE. Then you can check by typeing Dim Obj as, and you will get a lis of what you can declare it as. When you find the program in the list that's the value you use. For example, a ADO connection (referencing Microsoft ActiveX Dat Object) would look like this: Dim objConn As ADODB.Connection so you would use Set objConn = CreateObject("ADODB.Connection") HTH -- kkkni ----------------------------------------------------------------------- kkknie's Profile: http://www.excelforum.com/member.php...nfo&userid=754 View this thread: http://www.excelforum.com/showthread.php?threadid=26548 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I tried your example and could see the ADODB.Connection, but I couldn't see
the one I use. Typing in Dim Obj (or ObjConn) as would not show HostExplorer in the list (this is one I am using). Do I need a different Reference Libary turned on? BTW did I mention that I'm a real rookie at this, so please type slowly.. :) "kkknie" wrote: One way is to add the program to the references Tools | References in VBE. Then you can check by typeing Dim Obj as, and you will get a list of what you can declare it as. When you find the program in the list, that's the value you use. For example, a ADO connection (referencing Microsoft ActiveX Data Object) would look like this: Dim objConn As ADODB.Connection so you would use Set objConn = CreateObject("ADODB.Connection") HTH K -- kkknie ------------------------------------------------------------------------ kkknie's Profile: http://www.excelforum.com/member.php...fo&userid=7543 View this thread: http://www.excelforum.com/showthread...hreadid=265481 |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Yes. The ADO thing was just an example (just in case you were rookie). ;) Hopefully, when you go to References, you will see something related t your Exceed Hummingbird application. Check this box and Dimming A again. -- kkkni ----------------------------------------------------------------------- kkknie's Profile: http://www.excelforum.com/member.php...nfo&userid=754 View this thread: http://www.excelforum.com/showthread.php?threadid=26548 |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You may have to go and find the typelibrary file in References if VBE
doesn't already know it. -- HTH RP "Bill" wrote in message ... I tried your example and could see the ADODB.Connection, but I couldn't see the one I use. Typing in Dim Obj (or ObjConn) as would not show HostExplorer in the list (this is one I am using). Do I need a different Reference Libary turned on? BTW did I mention that I'm a real rookie at this, so please type slowly.. :) "kkknie" wrote: One way is to add the program to the references Tools | References in VBE. Then you can check by typeing Dim Obj as, and you will get a list of what you can declare it as. When you find the program in the list, that's the value you use. For example, a ADO connection (referencing Microsoft ActiveX Data Object) would look like this: Dim objConn As ADODB.Connection so you would use Set objConn = CreateObject("ADODB.Connection") HTH K -- kkknie ------------------------------------------------------------------------ kkknie's Profile: http://www.excelforum.com/member.php...fo&userid=7543 View this thread: http://www.excelforum.com/showthread...hreadid=265481 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This would be a DLL file somewhere in the programs directory?
"Bob Phillips" wrote: You may have to go and find the typelibrary file in References if VBE doesn't already know it. -- HTH RP "Bill" wrote in message ... I tried your example and could see the ADODB.Connection, but I couldn't see the one I use. Typing in Dim Obj (or ObjConn) as would not show HostExplorer in the list (this is one I am using). Do I need a different Reference Libary turned on? BTW did I mention that I'm a real rookie at this, so please type slowly.. :) "kkknie" wrote: One way is to add the program to the references Tools | References in VBE. Then you can check by typeing Dim Obj as, and you will get a list of what you can declare it as. When you find the program in the list, that's the value you use. For example, a ADO connection (referencing Microsoft ActiveX Data Object) would look like this: Dim objConn As ADODB.Connection so you would use Set objConn = CreateObject("ADODB.Connection") HTH K -- kkknie ------------------------------------------------------------------------ kkknie's Profile: http://www.excelforum.com/member.php...fo&userid=7543 View this thread: http://www.excelforum.com/showthread...hreadid=265481 |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It could be a dll, but could be an olb or a tlb.
And then it might be in the programs directory, or in windows, depends on the implementation. Really you need to know these facts and search for it. -- HTH RP "Bill" wrote in message ... This would be a DLL file somewhere in the programs directory? "Bob Phillips" wrote: You may have to go and find the typelibrary file in References if VBE doesn't already know it. -- HTH RP "Bill" wrote in message ... I tried your example and could see the ADODB.Connection, but I couldn't see the one I use. Typing in Dim Obj (or ObjConn) as would not show HostExplorer in the list (this is one I am using). Do I need a different Reference Libary turned on? BTW did I mention that I'm a real rookie at this, so please type slowly.. :) "kkknie" wrote: One way is to add the program to the references Tools | References in VBE. Then you can check by typeing Dim Obj as, and you will get a list of what you can declare it as. When you find the program in the list, that's the value you use. For example, a ADO connection (referencing Microsoft ActiveX Data Object) would look like this: Dim objConn As ADODB.Connection so you would use Set objConn = CreateObject("ADODB.Connection") HTH K -- kkknie ------------------------------------------------------------------------ kkknie's Profile: http://www.excelforum.com/member.php...fo&userid=7543 View this thread: http://www.excelforum.com/showthread...hreadid=265481 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2007 Form Control/ActiveX Control font difference | Excel Discussion (Misc queries) | |||
Excel spin box - no Control tab in Format Control dialong box | Excel Worksheet Functions | |||
Is there a way to unload the loaded XLL file in Excel? Hi all, I amdebugging XLL link library using Visual C++. Everytime I rebuild the XLL, Ihave to close the whole Excel program and relaunch the Excel program again,and then load in the newly gene | Excel Discussion (Misc queries) | |||
Calendar Control: Can't exit design mode because control can't be created | Excel Programming | |||
merging excel program with tdc finance program | Excel Programming |