Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|