PC Review


Reply
 
 
General
Guest
Posts: n/a
 
      5th Jan 2008
Is there a VBA command that emulates ctrl-a?
 
Reply With Quote
 
 
 
 
Edwin Tam
Guest
Posts: n/a
 
      5th Jan 2008
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
4651425E-157C-4B0F-816D-(E-Mail Removed), "General"
<(E-Mail Removed)> wrote:

> Is there a VBA command that emulates ctrl-a?


 
Reply With Quote
 
General
Guest
Posts: n/a
 
      5th Jan 2008
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
> 4651425E-157C-4B0F-816D-(E-Mail Removed), "General"
> <(E-Mail Removed)> wrote:
>
> > Is there a VBA command that emulates ctrl-a?

>
>

 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      5th Jan 2008
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" <(E-Mail Removed)> wrote in message news:95ED49F4-9647-4BC2-A192-(E-Mail Removed)...
> 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
>> 4651425E-157C-4B0F-816D-(E-Mail Removed), "General"
>> <(E-Mail Removed)> wrote:
>>
>> > Is there a VBA command that emulates ctrl-a?

>>
>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I set ctrl+s and ctrl+o window size & ctrl+o save as type defa Moonbarker Osbourne Windows XP General 1 18th Jan 2008 02:10 PM
Shortcut keys like Ctrl+C, Ctrl+V, Ctrl+A etc Not Working gettechtips@yahoo.co.in Windows XP General 1 23rd Sep 2006 12:43 PM
Word 2003 go to start of document - ctrl home taking me to CTRL G =?Utf-8?B?bGVs?= Microsoft Word Document Management 3 12th Jul 2006 01:34 PM
How to enable Ctrl+C, Ctrl+V, Ctrl+X in textBoxes? kari Microsoft C# .NET 1 16th May 2006 02:19 AM
Re: VB script that mimics CTRL+C, CTRL+G, CTRL+V, ENTER? Fergus Cooney Microsoft VB .NET 0 8th Nov 2003 01:24 AM


Features
 

Advertising
 

Newsgroups
 


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