as400 Macro to copy/paste info from excel

Posted on 2011-10-29
Last Modified: 2013-11-27
Hi, I need a macro for as400 which will take info from an excel spreadsheet and copy/paste the info into as400 and then go back to the spreadsheet until all the rows are processed.  (Ex, cell A1 is an account #, B1 is a date (no slashes) & C1 is text).  I'd like it to process through each row and paste the info into as400.  I have to use the sendkey command at the appropriate times between pasting some of the info.  Does anyone have anything that can help me accomplish this?
Question by:jstein1
    1 Comment
    LVL 16

    Accepted Solution


    I don't know if it helps, but you can configure the keyboard (change mapping option in Client access)
    so that you have a paste-Next key. e.g. attach paste next to  Ctrl+N  now you can copy the whole excel sheet and paste it to your screen (Ctrl-V), for every next part of the sheet press Crtl-N.

    Otherwise, use this client access macro, it's read your excel, paste it to the as/400 and check for errors.

    Rename the file from .txt to .mac to use it



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
    I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
    Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
    Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now