LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default sendkey method for forms


I have a sub that calls a form. The form has some code to check data
select range etc. I want the sub or form to click "OK" command once i
does the checks without user interference.

From the forum, I got the key as
Application.sendkeys("{Enter}")

But where do I put this line? In the form or in the sub calling th
form?

Sub calls the form
Form is shown
Form executes whatever, required fields are populated
<code executes the OK
control returns to the sub
does a bunch of things

Thanks all for the hel

--
reachthepalac
-----------------------------------------------------------------------
reachthepalace's Profile: http://www.excelforum.com/member.php...fo&userid=3172
View this thread: http://www.excelforum.com/showthread.php?threadid=53344

 
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
sendkey help needed Ryk Excel Discussion (Misc queries) 4 November 6th 06 04:50 AM
forms that suddenly wont appear using the show method in VBA a bug or a corrupted file perhaps ? Richard Finnigan Excel Discussion (Misc queries) 0 February 15th 06 07:12 PM
Help! Forms that lose their show method !! itjunkey Excel Programming 1 February 15th 06 06:42 PM
Sendkey Jordan Excel Programming 1 November 9th 05 03:12 AM
SENDKEY method jason Excel Programming 4 November 3rd 04 05:13 PM


All times are GMT +1. The time now is 08:23 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"