+ Reply to Thread
Results 1 to 7 of 7

Connecting MS Excel with Attachmate Extra X-treame

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    88

    Connecting MS Excel with Attachmate Extra X-treame

    I am trying to create a session between Excel and Attachmate Extra Xtreame to fetch info from various screens of Extra and paste it on to excel.
    Everytime I am trying to create a session between Excel and Extra Its giving me error "MS Excel is waiting for another application to complete OLE action"
    I have seleted the Attachment Object Library (Tools --> Referance). Do I need to make any changes to Attachmate Extra Xtrme?

    please suggest what should i do
    Last edited by dinesh_ltjd; 12-19-2012 at 05:30 AM.

  2. #2
    Registered User
    Join Date
    12-14-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Connecting MS Excel with Attachmate Extra X-treame

    Hi dinesh_ltjd,

    I have some recent experience using Excel VBA to send to and receive data from Attachmate Extra! X-Treme v9.0. If you could paste your VBA code I might be able to help.

    bradbb

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Connecting MS Excel with Attachmate Extra X-treame

    Thanks Bradbb for reply :-)
    I am using Attachmate Extra! X-treme 8.0SP1
    Below is the code i am using to create a session between Excel and Attachmate


    Please Login or Register  to view this content.
    Last edited by arlu1201; 08-04-2013 at 10:59 AM.

  4. #4
    Registered User
    Join Date
    12-14-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Connecting MS Excel with Attachmate Extra X-treame

    Hi dinesh_ltjd,

    It looks like you're combining both early and late binding, which isn't working. The most common method i've seen used for this is late binding, which I've modified your code to use:

    Please Login or Register  to view this content.
    Edit: I thought I'd also show you early binding, as it is easier to develop code using early binding as it exposes the object library, which allows the use of "intellisense" and syntax checking. However, it is recommended that you change it to late binding when releasing your code, especially if you're unsure of the software versions being used on other users' PCs.

    Please Login or Register  to view this content.
    Enjoy!

    Bradbb
    Last edited by Bradbb; 12-20-2012 at 12:33 PM.

  5. #5
    Registered User
    Join Date
    08-29-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Connecting MS Excel with Attachmate Extra X-treame

    Hi Bradbb,

    i have tried your code with late binding concept

    But its still giving same error as Excel wating for another application to complete the OLE Action

    I have run the code statement wise and its getting stuck at following part

    Set oActive = oSys.ActiveSession
    If oActive Is Nothing Then

  6. #6
    Registered User
    Join Date
    12-14-2012
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Connecting MS Excel with Attachmate Extra X-treame

    Hi dinesh_ltjd,

    You probably already searched, but if not you might want to review the KB article from Microsoft: http://support.microsoft.com/kb/2663513. Is EXTRA! somehow still active (running a macro or something?) when you try to execute the VBA code?


    If you want to try slightly different code to see if it's just "ActiveSession" that is giving you a problem, you could use:

    Set oActive = oSess.Item("C:\PATH")

    Where PATH is the directory and filename of your current Extra! session .edp file (eg: C:\Documents and Settings\All Users\Shared Documents\Attachmate\EXTRA!\sessions\filename.edp).

    HTH

    Bradbb

  7. #7
    Registered User
    Join Date
    08-29-2012
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    88

    Re: Connecting MS Excel with Attachmate Extra X-treame

    Hi Team,

    I am starting this project again. I have Attachmich I am getting while running my code m trying to send and receive data from Attachmate Extra Xtreame to Excel 2010
    But unable to do the same.Error which I am getting while running my code is 'MS Excel is waiting for another application to complete OLE action'
    Any help will be appreciated,

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1