×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Excel Macro converting from running TSYS scrape to Attachmate TSYS scrape

Excel Macro converting from running TSYS scrape to Attachmate TSYS scrape

Excel Macro converting from running TSYS scrape to Attachmate TSYS scrape

(OP)
I apologize if this has been covered before...I had an Excel Macro that used to pull a scrape of data from a program called TSYS and then place the information in an excel spreadsheet, worked great but now due to system upgrades I have to access TSYS through Attachmate Reflection Suite for X 2011....I guess I am requesting guidence on how to change the coding to find this program rather than TSYS and then run the macro like before.

Thanks in advance for any assistance

RE: Excel Macro converting from running TSYS scrape to Attachmate TSYS scrape

hi,

Quote:

how to change the coding

WHAT coding?

Skip,

glassesJust traded in my OLD subtlety...
for a NUance!tongue

RE: Excel Macro converting from running TSYS scrape to Attachmate TSYS scrape

(OP)
Hi Skip, thanks for the reply and I apologize for not being really clear plus I am a bit new to this. This would be the code that is in the Excel VB. So the first part I guess is the code for the Button that is selected to ger the whole process running and it looks like this.

CODE

Private Sub PullStat()
Dim S1 As Sheet1
Dim i As Integer
Dim Acct As String

Dim Sess As String


Sess = TSYS_Session_Active()

Sess = "A"

If Sess = "NONE" Then
    MsgBox "No Active TSYS Session Found"
    Exit Sub 

Then the VB for Module 1 starts like this

CODE

Public Function TSYS_Session_Active() As String
Dim autECLWinObj As Object
Dim ConnList As Object
Dim WinTitle As String
Dim i As Long

On Error GoTo PCOMM_ERROR

Set ConnList = CreateObject("PCOMM.autECLConnList")
 
' Initialize the connection
ConnList.Refresh

If ConnList.Count = 0 Then
    TSYS_Session_Active = "NONE"
    Exit Function
End If

For i = 1 To ConnList.Count
Set autECLWinObj = Nothing
Set autECLWinObj = CreateObject("PCOMM.autECLWinMetrics")
autECLWinObj.SetConnectionByHandle (ConnList(i).Handle)
WinTitle = autECLWinObj.WindowTitle 'get the window title
    While Len(WinTitle) > 3
        If Left(WinTitle, 4) = "TSYS" Then
            TSYS_Session_Active = ConnList(i).Name
            Exit Function
        Else
            WinTitle = Mid(WinTitle, 2)
        End If
    Wend

Next i

PCOMM_ERROR:
TSYS_Session_Active = "NONE"
End Function 

Now because the TSYS session is run/accessed through attachmate, this macro will not work, so is this as easy as changing all the references to TSYS to something else or is it more complex than that.

Thanks

Pieter

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close