#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default ctrl-a

Is there a VBA command that emulates ctrl-a?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default ctrl-a

I guess what you meant by "Ctrl-a" is to have all cells selected.

Activesheet.cells.select

Or, if you really want to fire a "Ctrl-a" keyboard instruction, you can try:
Application.Sendkeys "^a"

Regards,
Edwin


On 05/01/2008 7:43 PM, in article
, "General"
wrote:

Is there a VBA command that emulates ctrl-a?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default ctrl-a

PERFECT .. thanks; "^a" was what i was after.

"Edwin Tam" wrote:

I guess what you meant by "Ctrl-a" is to have all cells selected.

Activesheet.cells.select

Or, if you really want to fire a "Ctrl-a" keyboard instruction, you can try:
Application.Sendkeys "^a"

Regards,
Edwin


On 05/01/2008 7:43 PM, in article
, "General"
wrote:

Is there a VBA command that emulates ctrl-a?



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default ctrl-a

Note:

Excel 97-2002:
Use the shortcut Ctrl-a to select all cells.

Excel 2003:
If the worksheet contains data, CTRL+A selects the current region.
Pressing CTRL+A a second time selects the entire worksheet.

Excel 2007:
If the worksheet contains data, CTRL+A selects the current region.
Pressing CTRL+A a second time selects the current region and its summary rows.
Pressing CTRL+A a third time selects the entire worksheet.


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"General" wrote in message ...
PERFECT .. thanks; "^a" was what i was after.

"Edwin Tam" wrote:

I guess what you meant by "Ctrl-a" is to have all cells selected.

Activesheet.cells.select

Or, if you really want to fire a "Ctrl-a" keyboard instruction, you can try:
Application.Sendkeys "^a"

Regards,
Edwin


On 05/01/2008 7:43 PM, in article
, "General"
wrote:

Is there a VBA command that emulates ctrl-a?



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
Is there a difference between CTRL+D and CTRL+" (quotation marks) AKMMS Excel Discussion (Misc queries) 2 March 22nd 10 07:43 PM
How to make Ctrl-C, ctrl-V work in Office 2007 hj Excel Discussion (Misc queries) 1 June 23rd 09 01:09 PM
Excel 2007: Ctrl+PgUp or Ctrl+PgDn with Protected Sheets DrDave Excel Discussion (Misc queries) 1 July 28th 08 04:12 AM
Redefining the Ctrl [ and Ctrl ]s short cut with OnKey? John Wirt[_5_] Excel Programming 6 January 24th 05 05:46 AM
Disabling Ctrl-PgUp and Ctrl-PgDn K.A. Hueston Excel Programming 3 October 9th 04 12:31 AM


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