Results 1 to 3 of 3

Thread: Excel To WRQ Reflection For IBM

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    1

    Excel To WRQ Reflection For IBM

    Is there a way i could program a macro to grab fields out of excel and paste the in a reflection screen? and how do i incorporate the timing?

    Thanks,
    Nick

  2. #2
    New Member DavidJ_John's Avatar
    Join Date
    Jun 2009
    Posts
    8

    Re: Excel To WRQ Reflection For IBM

    do u need it now?

  3. #3
    New Member
    Join Date
    May 2012
    Posts
    5

    Re: Excel To WRQ Reflection For IBM

    well i need it
    am using the WRQ Reflection for IBM 3270 i need to Run a Macro In Reflection to copy data from Excel and paste it into Reflection
    i dont know how to do that!!... i have created a example of vba for you to understand a create a vba macro from it
    i have data in excel Column A and B
    1st I need to Copy data from A1 and paste it into Reflection Position .WaitForEvent rcEnterPos, "30", "0", 3, 11 & after that it will move to next screen and have to copy data from B1 and paste it in position .WaitForEvent rcEnterPos, "30", "0", 4, 11
    .WaitForDisplayString "SEALS..:", "30", 4, 2 and enter and this process should continue till the last cell with data
    i can email a Excel file with screen shots of the IBM reflection if required
    Sub macro3()

    With Session

    Dim excelwb As Object
    Dim z As Integer
    Set excelwb = GetObject(, "Excel.Application")
    Set excelwb = GetObject("C:\Documents and Settings\mintezar\Desktop\Book1.xls")
    z = excelwb.Worksheets("Load").Range("A 1").Value
    Selection.Copy
    .WaitForEvent rcEnterPos, "30", "0", 3, 11
    .WaitForDisplayString "NBR:", "30", 3, 6
    .Paste
    .TransmitTerminalKey rcIBMEnterKey
    End With
    End Sub

Posting Permissions

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



Click Here to Expand Forum to Full Width