Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default How to enter in Edit Mode programmatically


--
Stefano Gatto
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 59
Default How to enter in Edit Mode programmatically - my question

I would like to create a short macro that appends the current date and the
initials of the Excel user, at the end of the text contained in a cell. This
will help identifying who wrote what, in a comment column. Ideally I would
like that the user finds the cell in edit mode after s/he runs this macro, so
s/he can enter text right away, instead of needing to click on F2.

Can a macro end while a cell is in edit mode?

Stefano Gatto

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default How to enter in Edit Mode programmatically - my question

Sub editmode()
Set r = Range("A1")
r.Value = "hello world"
r.Select
Application.SendKeys "{F2}"
DoEvents
End Sub

--
Gary''s Student - gsnu200837
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
Programmatically copying range in design mode Robert Davidson Excel Programming 2 September 17th 08 08:22 PM
Make "Edit" mode default, rather than "Enter"? Greg Boettcher Excel Discussion (Misc queries) 1 July 27th 06 01:46 AM
VSTO and Excel-- End Cell Edit Mode Programmatically? [email protected] Excel Programming 2 July 25th 06 06:47 AM
Combo Box goes to edit mode even if design mode is in OFF position Chas Excel Discussion (Misc queries) 0 January 7th 05 07:21 PM
Enter Excel Design Mode and Exit Design Mode Bill Lunney Excel Programming 0 August 4th 03 07:48 AM


All times are GMT +1. The time now is 06:29 PM.

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"