![]() |
|
#2
|
|||
|
|||
|
the tab is being applied to the txtPrice contorl.
Code:
Private Sub tbxItemText_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
Select Case KeyCode
Case vbKeyReturn, vbKeyTab
With tbxPrice
.SetFocus
.SelStart = 0
.SelLength = 4
End With
KeyCode = 0
End Select
End Sub
Private Sub UserForm_Initialize()
tbxPrice.Text = "0.00"
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
How to control INPUT CURSOR location when clicking in Word after being in another app?
|
Retko | Word | 1 | 04-11-2019 09:34 PM |
Clicking the selected Content Control checkbox returns wrong control in vba event
|
DougsGraphics | Word VBA | 2 | 06-24-2015 07:31 AM |
| Printing content of textbox Active X control | donnashim | Word | 0 | 05-12-2015 02:48 AM |
| Textbox control autosize and mutliline | kogi | Word VBA | 3 | 09-25-2014 06:15 AM |
Display result in textbox based on the input of another textbox
|
scarymovie | Word VBA | 5 | 05-16-2012 07:05 PM |