Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default how to get a macro to record F2, Home, Delete keystrokes

trying to edit the contents of a cell, but the macro acts as if I am typing
in whatever remains in the cell instead.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default how to get a macro to record F2, Home, Delete keystrokes

Excel lacks the type of keystroke macro recording ability that would allow
this. In VBA, you need to use something like this, which will remove the
first character of a string in a cell:

ActiveCell.Value = Mid(ActiveCell.Value, 2, Len(ActiveCell.Value))

HTH,
Bernie
MS Excel MVP



"jenonstx" wrote in message
...
trying to edit the contents of a cell, but the macro acts as if I am
typing
in whatever remains in the cell instead.



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
macro to record keystrokes ? Steve[_9_] Excel Discussion (Misc queries) 4 December 5th 07 02:44 PM
find last record in macro and delete all after Sherife Excel Discussion (Misc queries) 3 September 18th 06 03:51 AM
Macro to record keystrokes and not cell addresses Brian William Johnston Excel Discussion (Misc queries) 3 May 17th 06 09:27 PM
Make a macro of keystrokes. ie. F2,Shift & Home & right cursor,de. Ted Byrd Excel Worksheet Functions 1 December 29th 04 05:52 PM
Record Keystrokes With Macro Recorder Minitman[_4_] Excel Programming 0 April 1st 04 09:40 AM


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