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


"Orlando Magalhães Filho" wrote in message
...
Hi AleP

SendKeys method places keystrokes in a key buffer and they stay there

until
Excel releases keyboard for user could type, this happens, for example, at
the end of the code, when it show a dialog box or a form. Thus, on your
code, keystrokes from SenkKeys will happen then of the Range("A2").Select.

---
Orlando Magalhães Filho


Is there an option to add WAIT at the end of sendkeys, so that the rest of
the code does not execute until cell A5 has been selected?

Is DOEVENTS useful here?

Geoff



(So that you get best and rapid solution and all may benefit from the
discussion, please reply within the newsgroup, not in email)

"AleP" <[email protected] escreveu na mensagem
...
Hi,
I have the following macro:

Sub Sendkeys()
Application.SendKeys ("^{HOME}") ' the same of pressing CTRL+HOME
Range("A2").Select
End Sub


It should select the left top of a database (in my example cell A5

because
in this cell is activated the feature FreezePanes) and then select cell

A2.
But it only selects the left top of database without selecting cell A2

and
I
don't understand why.
Thanks a lot for any help.






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
sendkeys string hawki Excel Discussion (Misc queries) 4 May 11th 07 08:30 PM
SendKeys function moglione1 Excel Discussion (Misc queries) 1 November 7th 05 02:57 PM
Sendkeys to run Find Dave Peterson[_3_] Excel Programming 2 September 10th 03 12:59 AM
SendKeys Ron de Bruin Excel Programming 3 August 25th 03 10:21 PM
sendkeys mark poole Excel Programming 0 July 11th 03 03:47 PM


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

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

About Us

"It's about Microsoft Excel"