Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Running code from ~? Don't want to use <Ctrl<key

Hi,

I am fairly fluent in VBA for Access, but have next to no experience
with Excel. I am doing this for a friend...

He wants to be able to delete an entire row with one keystroke, in
this case, the ~. He doesn't want to use <Ctrl<q or
<Ctrl<anything. Just one key! I have the code to delete the row,
but how do I assign that to just one key?

Many thanks!

Patti
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 770
Default Running code from ~? Don't want to use <Ctrl<key

Patti,

I think you could use the OnKey method in the WorkBook Open and BeforeClose
events to assign and unassign a delete macro to that key, but I'm not sure.

hth,

Doug

"Patti" wrote in message
om...
Hi,

I am fairly fluent in VBA for Access, but have next to no experience
with Excel. I am doing this for a friend...

He wants to be able to delete an entire row with one keystroke, in
this case, the ~. He doesn't want to use <Ctrl<q or
<Ctrl<anything. Just one key! I have the code to delete the row,
but how do I assign that to just one key?

Many thanks!

Patti



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
Excel 2007: Ctrl+PgUp or Ctrl+PgDn with Protected Sheets DrDave Excel Discussion (Misc queries) 1 July 28th 08 04:12 AM
VSB code - 'Home' & 'CTRL+End' Corey Excel Discussion (Misc queries) 9 February 9th 06 08:10 PM
running code mark New Users to Excel 3 March 14th 05 09:14 AM
running VB code Cath[_3_] Excel Programming 1 November 21st 03 05:09 PM


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