Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Modifing a userform txtbox code

On Jun 13, 8:21 am, "Bernie Deitrick" <deitbe @ consumer dot org
wrote:
js,

Try

If blkProc Then Exit Sub
If Len(Me.textbox1.Value) = 10 Then
ActiveCell.Value = Me.textbox1.Value
blkProc = True
Me.textbox1.Value = ""
blkProc = False
ActiveCell.Offset(1, 0).Activate
End If

HTH,
Bernie
MS Excel MVP

wrote in message

oups.com...





Below is a code for a text box in a userform that accepts one
character and then goes to the next cell. How do i modify it to accept
ten characters and then move to the next cell.


Thanks


Private Sub TextBox1_Change()


If blkProc Then Exit Sub
ActiveCell.Value = Me.TextBox1.Value
blkProc = True
Me.TextBox1.Value = ""
blkProc = False


ActiveCell.Offset(1, 0).Activate


End Sub- Hide quoted text -


- Show quoted text -


Thanks Bernie

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
NEED HELP MODIFING A CELL miguel_0319 Excel Discussion (Misc queries) 1 August 2nd 09 05:55 PM
modifing the find function Chris Excel Discussion (Misc queries) 1 March 18th 08 07:00 PM
Modifing a recorded macro. Duane Reynolds Excel Programming 1 August 9th 06 05:27 AM
VBA question - Inputing data to txtbox in userform using short date formart ajliaks[_2_] Excel Programming 2 April 13th 04 11:45 AM
txtbox code Sal_sal Excel Programming 1 December 12th 03 11:25 AM


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