Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default auto number form

I would like to include a text box in a form in which the number in the box
will increment by one each time textbox1 is filled.
can any one suggest a method of achieving this

--
regards
ALEX


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default auto number form

No easy way except using VB... If this is a workbook where more than 1 copy
will exist then you neet to create a text (or database which is my personal
favorite) file on a network drive and access that through code. If there will
be only one copy of the file then it is easier to get unique incremented
numbers. Just store a number on a hidden sheet somewhere and increment it
when required...

HTH

"alex.simms" wrote:

I would like to include a text box in a form in which the number in the box
will increment by one each time textbox1 is filled.
can any one suggest a method of achieving this

--
regards
ALEX



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default auto number form

Alex,

Here is a code that will start the listbox text with "0" then each time you
Tab or press the Enter key on textbox2 Textbox1 will increment. You need to
set the Property value of Textbox1 Text to "0".

HTH

Charles

Private Sub Textbox2_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal
Shift As Integer) 'tab key
Application.ScreenUpdating = False
If KeyCode = "9" Or KeyCode = "13" Then
With UserForm1
.TextBox1.Text = .TextBox1.Text + 1
End With
End If
End Sub

"alex.simms" wrote in message
...
I would like to include a text box in a form in which the number in the box
will increment by one each time textbox1 is filled.
can any one suggest a method of achieving this

--
regards
ALEX




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
Auto Number for Form DHull Excel Discussion (Misc queries) 4 December 21st 09 08:32 PM
Using a template form, advance a form number everytime you open ShoDan Excel Discussion (Misc queries) 1 January 31st 08 01:34 PM
Auto Number the Rows of Auto Filter Result ashish128 Excel Discussion (Misc queries) 3 April 29th 07 06:41 PM
how can I make a form number change everytime the form is opened babydumplingspita Excel Worksheet Functions 1 October 10th 05 07:58 PM
assign auto number and auto date Krit Kasem Excel Discussion (Misc queries) 2 January 14th 05 02:55 AM


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