Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default simulate pressing CTRL and A

hi,

how do you simulate pressing CTRL and A at the same time? would you use the
SendKeys method? If so I am not sure of the code? If not, any ideas?

thanks in advance,
geebee

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default simulate pressing CTRL and A

Ctrl+A will select all cells so you should be able to use
cells.select
--
HTH...

Jim Thomlinson


"geebee" wrote:

hi,

how do you simulate pressing CTRL and A at the same time? would you use the
SendKeys method? If so I am not sure of the code? If not, any ideas?

thanks in advance,
geebee

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default simulate pressing CTRL and A

hi,

well this is being done while in an IE window. i used the following to
simulate hitting ENTER key:

Windows.Application.SendKeys "{ENTER}"
SendKeys "{ENTER}"

so i am afraid cells.select will not work within the IE window. is there a
more specific sendkeys code?

thanks in advance,
geebee


"Jim Thomlinson" wrote:

Ctrl+A will select all cells so you should be able to use
cells.select
--
HTH...

Jim Thomlinson


"geebee" wrote:

hi,

how do you simulate pressing CTRL and A at the same time? would you use the
SendKeys method? If so I am not sure of the code? If not, any ideas?

thanks in advance,
geebee

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default simulate pressing CTRL and A

Try using "^A" as the argument to the SendKeys method (which is covered in
the help files for SendKeys by the way).

--
Rick (MVP - Excel)


"geebee" (noSPAMs) wrote in message
...
hi,

well this is being done while in an IE window. i used the following to
simulate hitting ENTER key:

Windows.Application.SendKeys "{ENTER}"
SendKeys "{ENTER}"

so i am afraid cells.select will not work within the IE window. is there
a
more specific sendkeys code?

thanks in advance,
geebee


"Jim Thomlinson" wrote:

Ctrl+A will select all cells so you should be able to use
cells.select
--
HTH...

Jim Thomlinson


"geebee" wrote:

hi,

how do you simulate pressing CTRL and A at the same time? would you
use the
SendKeys method? If so I am not sure of the code? If not, any ideas?

thanks in advance,
geebee


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default simulate pressing CTRL and A

hi,

i am now using...


Windows.Application.SendKeys ("^A")
SendKeys ("^A")

its not giving me an error message, but at the same time it is not doing
anything either. im not sure what going on. any ideas? is there a more
dependable method?


thanks in advance,
geebee


"Rick Rothstein" wrote:

Try using "^A" as the argument to the SendKeys method (which is covered in
the help files for SendKeys by the way).

--
Rick (MVP - Excel)


"geebee" (noSPAMs) wrote in message
...
hi,

well this is being done while in an IE window. i used the following to
simulate hitting ENTER key:

Windows.Application.SendKeys "{ENTER}"
SendKeys "{ENTER}"

so i am afraid cells.select will not work within the IE window. is there
a
more specific sendkeys code?

thanks in advance,
geebee


"Jim Thomlinson" wrote:

Ctrl+A will select all cells so you should be able to use
cells.select
--
HTH...

Jim Thomlinson


"geebee" wrote:

hi,

how do you simulate pressing CTRL and A at the same time? would you
use the
SendKeys method? If so I am not sure of the code? If not, any ideas?

thanks in advance,
geebee





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default simulate pressing CTRL and A

I've not done much (read that as nearly nothing) with web interfacing, so I
can't answer your question directly... I was only responding to your stated
SendKeys question itself. Hopefully someone with experience using IE
interaction will come along and address your problem.

--
Rick (MVP - Excel)


"geebee" (noSPAMs) wrote in message
...
hi,

i am now using...


Windows.Application.SendKeys ("^A")
SendKeys ("^A")

its not giving me an error message, but at the same time it is not doing
anything either. im not sure what going on. any ideas? is there a more
dependable method?


thanks in advance,
geebee


"Rick Rothstein" wrote:

Try using "^A" as the argument to the SendKeys method (which is covered
in
the help files for SendKeys by the way).

--
Rick (MVP - Excel)


"geebee" (noSPAMs) wrote in message
...
hi,

well this is being done while in an IE window. i used the following to
simulate hitting ENTER key:

Windows.Application.SendKeys "{ENTER}"
SendKeys "{ENTER}"

so i am afraid cells.select will not work within the IE window. is
there
a
more specific sendkeys code?

thanks in advance,
geebee


"Jim Thomlinson" wrote:

Ctrl+A will select all cells so you should be able to use
cells.select
--
HTH...

Jim Thomlinson


"geebee" wrote:

hi,

how do you simulate pressing CTRL and A at the same time? would you
use the
SendKeys method? If so I am not sure of the code? If not, any
ideas?

thanks in advance,
geebee




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
How do you reset the position that pressing CTRL-END moves you to? PeterB Excel Discussion (Misc queries) 2 October 10th 08 06:10 PM
simulate pressing enter not working geebee Excel Programming 2 July 25th 08 07:37 AM
How to catch Ctrl+P short or Pressing Print Button RobertS Excel Programming 2 February 11th 07 12:42 AM
Pressing ctrl (Excel - selecting cells) causes mouse to freeze..? Kelly Excel Discussion (Misc queries) 1 January 28th 06 11:11 PM


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