Copy/Paste VB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • obeast215
    New Member
    • Oct 2007
    • 1

    Copy/Paste VB

    Good Afternoon,

    I am trying to create a macro that will copy and paste from the 3270 IBM Reflection program to either Microsoft Access database or Microsoft Excel. I already understand the mapping, i.e. column and rows, how to highlight what I want. But I don’t understand how to take that information via macros and paste it into the Access or Excel spreadsheet. I have already learned how to paste from Access to 3270 to run the repetitive reports that I used to have to do manually. Now I would like to use the macros to pull the information that I pull repetitively. Can anyone help please? Give me a string to copy anything, even a letter from 3270 IBM Reflection or anything, with that I can figure out how to rewrite the information to move all the data I need from the one program to Access or Excel. If no one knows how to do this, can someone please direct me to where I could find an answer on this?

    Thank you very much
    Shayne
    Last edited by Killer42; Nov 2 '07, 12:10 AM.
  • danp129
    Recognized Expert Contributor
    • Jul 2006
    • 323

    #2
    I would start by searching the manual for "copy".

    It may look something like this:

    [CODE=vb]Sub ClipboardDemo()
    '
    ' ClipboardDemo Macro
    ' Macro created <today's date> by <your name>
    '
    ' Copy screen text to the Clipboard
    '
    Dim displayText As String
    displayText = Session.GetDisp layText(1, 1, 80)
    Session.SetClip boardText (displayText)
    MsgBox "Screen text has been copied to the Clipboard."
    End Sub[/CODE]


    This may or may not be of some help to you:
    Last edited by Killer42; Nov 2 '07, 12:20 AM.

    Comment

    Working...