Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default making hotkey in textbox in userform



Private Sub CommandButton3_Click()
Application.OnKey "{F3}", "uMain.ddd"
End Sub
Sub ddd()
Me.textbox1.SetFocus
End Sub

the upper source does not work.
i want to make a hotkey(shortcut) the specific textbox control.

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 695
Default making hotkey in textbox in userform

Try:

Private Sub CommandButton3_Click()
Application.OnKey "{F3}", "ddd"
End Sub

Sub ddd()
ActiveSheet.Shapes("TextBox1").Select
End Sub

Sub ResetKey()
Application.OnKey "{F3}", ""
End Sub

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
select [a1]cell when hotkey(ctrl+q) pressed, after userform load x taol Excel Programming 0 January 27th 06 10:01 PM
Making a TextBox look and feel like a Label in a userform Harald Staff[_4_] Excel Programming 2 July 30th 03 08:35 PM
Making a TextBox look and feel like a Label in a userform Mike NG Excel Programming 0 July 30th 03 08:34 PM
Making a TextBox look and feel like a Label in a userform ijb Excel Programming 0 July 30th 03 12:26 AM
Making a TextBox look and feel like a Label in a userform Mike NG Excel Programming 0 July 29th 03 11:52 PM


All times are GMT +1. The time now is 09:51 AM.

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"