Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
combobox/textbox/userform/other question
I am using this code...
Code ------------------- Private Sub NameBox_DropButtonClick() Dim i As Integer, ii As Integer With NameBox If .ListIndex = 0 Then For ii = 1 To 16 Controls("TextBox" & ii).Value = Format(Cells(Rng(.ListIndex + 1).Row, ii + 1), "00000") Next End If End With End Sub ------------------- I have the formatting set for 5 numbers and if not to add zero' however at TextBox14 I have a number that I only want 4 for. Is ther anyway I can modify what I have above so that only TextBox14 is allowe to have 4 and the rest are forced to 5 -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
combobox/textbox/userform/other question
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Yet another userform combobox question | Excel Discussion (Misc queries) | |||
UserForm TextBox/ComboBox question | Excel Discussion (Misc queries) | |||
Question about ComboBox/Userform/TextBox etc. | Excel Programming | |||
Userform: Textbox changing with selection in combobox (list) | Excel Programming | |||
Userform ComboBox and TextBox help!!! | Excel Programming |