Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Application.sendkeys

Hello group,

With this macro I want to replace the manual action (press
F2 and enter) to enter the cell.
I've tried this one in a loop but that didn't work.
The result of this macro is that it only does this action
on cell AB2. My objective is to do this for all cells
within the range.


Sub test()
Range("AB2:AB100").Select
Application.SendKeys "{F2}~"
End Sub

Does anybody have a solution?

Regards,
Adrie


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 172
Default Application.sendkeys

AFAIK, you can only edit on cell at a time. I.e., when go enter Edit
mode, you can't be editing in more than one cell.

Maybe, there's a solution other than SendKeys. What exactly are you
trying to do?

HTH
Paul
--------------------------------------------------------------------------------------------------------------
Be advised to back up your WorkBook before attempting to make changes.
--------------------------------------------------------------------------------------------------------------

Hello group,

With this macro I want to replace the manual action (press
F2 and enter) to enter the cell.
I've tried this one in a loop but that didn't work.
The result of this macro is that it only does this action
on cell AB2. My objective is to do this for all cells
within the range.


Sub test()
Range("AB2:AB100").Select
Application.SendKeys "{F2}~"
End Sub

Does anybody have a solution?

Regards,
Adrie


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
Application.SendKeys "%{down}" damorrison Excel Discussion (Misc queries) 3 June 3rd 06 09:09 PM
Sendkeys GB[_3_] Excel Programming 0 September 16th 03 10:39 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 01:45 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"