Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default program control

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default program control


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default program control

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default program control


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default program control

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 390
Default program control

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default program control

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
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
2007 Form Control/ActiveX Control font difference Nikko963 Excel Discussion (Misc queries) 0 April 15th 09 04:21 PM
Excel spin box - no Control tab in Format Control dialong box tocoau Excel Worksheet Functions 7 August 10th 08 03:15 PM
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 LunaMoon Excel Discussion (Misc queries) 0 July 28th 08 11:03 PM
Calendar Control: Can't exit design mode because control can't be created Rone Excel Programming 0 May 24th 04 04:01 PM
merging excel program with tdc finance program judy Excel Programming 0 November 5th 03 08:01 PM


All times are GMT +1. The time now is 01:51 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"