Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Iseries - Transfer to

I saw some messages that were old regarding people trying to automate
their data transfers to the Iseries via the client access add-in to
Excel. It seems that recording keystrokes doesn't help any, so you end
up having to use the "Sendkeys" command.

Having said that, here is my code so far that works as long as there
are no errors. I need to pause for a couple of seconds after the
Sendkeys in case there are a couple of messages that pop up that have
to have the user click ok on. Then, it will work to do the
Activesheet.showalldata method.


Sub CAUpload()

'Upload the MJE to AS400 Using Client Access Addin
Dim TransReqFile As String
TransReqFile = Range("Transreqfile").Value
Call HideZeros
Application.DisplayAlerts = False
Range("Start").Offset(1, 0).Select
Range(Selection, Selection.End(xlDown)).Select
Range(Selection, Selection.End(xlToRight)).Select
SendKeys ("/" + "D" + "D" + "D" + "{Enter}" + "{Tab 6}" _
+ TransReqFile _
+ "{Enter}" + "{Tab 2}"), True
ActiveSheet.ShowAllData
Range("a6").Select
End Sub



Bruce Roberson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add-Ins for iSeries Access Data Transfer in Excel 2007 suriahseth New Users to Excel 3 November 30th 09 11:53 PM
How can I transfer data from iSeries in MS-Excel 2003 with SP2 Sumit Setting up and Configuration of Excel 1 August 24th 06 02:48 PM
How do I transfer data from iSeries in excel 2003 sp2? Sumit Excel Discussion (Misc queries) 1 August 24th 06 02:48 PM
Toolbar buttons -- AS400 iSeries Transfer surg4u1975 Excel Discussion (Misc queries) 0 December 27th 05 07:28 PM
How do I data transfer from Iseries in Excel 2003? Chrissy Excel Discussion (Misc queries) 0 August 3rd 05 06:30 PM


All times are GMT +1. The time now is 01:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"