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


I'm trying to get some code that will control the cursor position on my
AS400. I need to set the cursor to position *15, 9*, then send the
command *F2*.
Here is my code:
PS1.SetCursorPos 15, 9
OIA1.WaitForAppAvailable
OIA1.WaitForInputReady
PS1.SendKeys "[pf2]", 15, 9
OIA1.WaitForAppAvailable
OIA1.WaitForInputReady

This does not work, however, because it will not set the cursor
position unless I somehow activate the AS400 window, then set the
cursor position, then send F2. I'm not sure how to do this with code,
or if there is any other way around it.

Anyone know how to solve my little problem?

TIA,

DejaVu


--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile: http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=478285

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SetCursorPos


So, what version of Excel are you using?


--
bigwheel
------------------------------------------------------------------------
bigwheel's Profile: http://www.excelforum.com/member.php...o&userid=25301
View this thread: http://www.excelforum.com/showthread...hreadid=478285

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default SetCursorPos


Microsoft Excel 2003


--
DejaVu
------------------------------------------------------------------------
DejaVu's Profile: http://www.excelforum.com/member.php...o&userid=22629
View this thread: http://www.excelforum.com/showthread...hreadid=478285

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



All times are GMT +1. The time now is 11:53 PM.

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"