Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to Dim Hummingbird HostExplorer

I am using a older version of Hostexplorer and am trying to control it from
excel so that automate some of my tasks. I basicly need to open a vt session
send some commands to get the report pulled then copy the screen and past it
into excel. I have tried. The generic example below and i get a Run-time
error '429':
ActiveX component can't create object. ANy help would be greatly appreciated.

Sub main()
Dim HostExplorer as Object
Set HostExplorer = CreateObject("HostExplorer")
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to Dim Hummingbird HostExplorer

I would first try to see if you can find the prog id in the Registry. From
the Windows Start menu, choose Run and enter RegEdit. In RegEdit, open the
HKEY_CLASSES_ROOT section and find the ProgID, something along the lines of
"HostExplorer.Application". If you find the right key in the registry, use
that key in your CreateObject statement.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"Dustin H" <Dustin wrote in message
...
I am using a older version of Hostexplorer and am trying to control it from
excel so that automate some of my tasks. I basicly need to open a vt
session
send some commands to get the report pulled then copy the screen and past
it
into excel. I have tried. The generic example below and i get a Run-time
error '429':
ActiveX component can't create object. ANy help would be greatly
appreciated.

Sub main()
Dim HostExplorer as Object
Set HostExplorer = CreateObject("HostExplorer")
End Sub


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to Dim Hummingbird HostExplorer

Great, thank you for your time. I will give that a try tommorrow when i am at
work.

"Chip Pearson" wrote:

I would first try to see if you can find the prog id in the Registry. From
the Windows Start menu, choose Run and enter RegEdit. In RegEdit, open the
HKEY_CLASSES_ROOT section and find the ProgID, something along the lines of
"HostExplorer.Application". If you find the right key in the registry, use
that key in your CreateObject statement.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"Dustin H" <Dustin wrote in message
...
I am using a older version of Hostexplorer and am trying to control it from
excel so that automate some of my tasks. I basicly need to open a vt
session
send some commands to get the report pulled then copy the screen and past
it
into excel. I have tried. The generic example below and i get a Run-time
error '429':
ActiveX component can't create object. ANy help would be greatly
appreciated.

Sub main()
Dim HostExplorer as Object
Set HostExplorer = CreateObject("HostExplorer")
End Sub


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How to Dim Hummingbird HostExplorer

I finally got it to work. It is a bit touchy on what it was doing at first
but here is the source code for the module. It open the report by navigating
through the menu items and input the required data to pull the report then
scrapes the screen to put into excel.

Public Sub DialerDataMiner()

'Delcaring Variables

Dim HE
Dim CS
Dim WRow As Integer
Dim STime As String
Dim ETime As String
Dim Campaign As String
Dim Wait As Integer
Dim Book As String

'Setting HostExplorer

Book = ActiveWindow.Caption
Set HE = CreateObject("HostExplorer")
Set CS = HE.CurrentHost

'Filling Variables

Windows(Book).Activate
Sheet1.Activate
WRow = Cells(3, 8).Value
STime = Cells(WRow, 5).Value
ETime = Cells(WRow, 6).Value
Campaign = Cells(WRow, 1).Value
Wait = 300

'Opening Report

CS.Keys ("4^M")
CS.WaitIdle (Wait)
CS.Keys ("l^M")
CS.WaitIdle (Wait)
CS.Keys Campaign
CS.Keys ("^M")
CS.WaitIdle (Wait)
CS.Keys STime
CS.Keys ("^M")
CS.WaitIdle (Wait)
CS.Keys ETime
CS.Keys ("^M")
CS.WaitIdle (Wait)
CS.Keys ("n^M")
CS.WaitIdle (Wait)

'Scraping the screen

CS.Keys ("^M")
CS.Keys ("^M")
CS.WaitIdle (Wait)
CS.Keys ("^M")
CS.Keys ("^M")
CS.WaitIdle (Wait)
CS.Keys ("^M")
CS.Keys ("^M")
CS.WaitIdle (Wait)
CS.Keys ("^M")
CS.Keys ("^M")
CS.WaitIdle (Wait)
CS.Keys ("^M")
CS.WaitIdle (Wait)
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Right")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Select-Extend-Up")
CS.RunCmd ("Edit-Copy")


'Pasting screen scrape

CS.Keys ("q^M")
CS.Keys ("q^M")
Sheet2.Activate
Range("A1").Select
ActiveSheet.paste

'Moving data to summury sheet

Range("K6:P6").Select
Selection.Copy
Sheet1.Activate
Range(Cells(WRow, 7), Cells(WRow, 12)).Activate
Selection.PasteSpecial paste:=xlPasteValues,
Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False

'Cleanup

Sheet2.Activate
Columns("A:J").Select
Selection.ClearContents
Sheet1.Activate
CS.WaitIdle (Wait)
CS.Keys ("^M")

End Sub


"Chip Pearson" wrote:

I would first try to see if you can find the prog id in the Registry. From
the Windows Start menu, choose Run and enter RegEdit. In RegEdit, open the
HKEY_CLASSES_ROOT section and find the ProgID, something along the lines of
"HostExplorer.Application". If you find the right key in the registry, use
that key in your CreateObject statement.


--
Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)




"Dustin H" <Dustin wrote in message
...
I am using a older version of Hostexplorer and am trying to control it from
excel so that automate some of my tasks. I basicly need to open a vt
session
send some commands to get the report pulled then copy the screen and past
it
into excel. I have tried. The generic example below and i get a Run-time
error '429':
ActiveX component can't create object. ANy help would be greatly
appreciated.

Sub main()
Dim HostExplorer as Object
Set HostExplorer = CreateObject("HostExplorer")
End Sub


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
Excel 2003 and Hummingbird DM5 Sue[_5_] Excel Programming 1 June 1st 05 05:06 PM
Merge using Excel 2002 and Hummingbird Docs Open 3.9.0 Build 199 a_ryan1972 Excel Discussion (Misc queries) 0 April 15th 05 01:45 PM


All times are GMT +1. The time now is 11:20 AM.

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"