LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How to program keystrokes other than CTRL+something?

I often enter data into a spreadsheet using just the numeric keypad.
Frequently, I need to enter the same value into a number of successive
cells.

I would like to be able to repeat the entry of the same value by means
of a single keystroke. The 'accelerator key' function associated with
macros seems to allow only combinations of CTRL with (I think)
alphanumeric keys.

I have been able to do this by writing a macro that copies the contents
of the previous cell to the current one (using ActiveCell methods), and
specifying this macro as the second argument to an Application.OnKey
statement in a macro that sets up the spreadsheet.

This works fine, but I would really like to use the '+' key on the
numeric keypad to do this. But if I specify "{+}" as the first argument
to the Application.OnKey, it works only when I press Shift and the '+'
key on the top row of the full keypad. If I press the '+' key on the
numeric keypad, it simply puts a '+' into the cell!

Does anyone know of a way to persuade Excel (2000) or VB to do what I
want?

 
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
How to program an excel macro to repeat a series of keystrokes? Beancounter Excel Discussion (Misc queries) 8 January 22nd 05 11:51 PM


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