Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have a textbox on a form and want the user to input a column header. How can I prevent the user inputting a value greater than 'IV' ? Inputting 'K' yields 11 in the test msgbox Inputting 'KK' gives a 'Type Mismatch' error. Private Sub txt1_Change() txt1.Text = UCase(txt1.Text) ''' for syntax testing only MsgBox Sheets(1).Columns(txt1.Text).Column If Not Sheets(1).Columns(txt1.Text).Column 256 Then ''' do something Else MsgBox "No such column" End If End Sub T.I.A. Geoff |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I limit sorting a column to the column? | Excel Worksheet Functions | |||
Will the column limit be over 256? | Excel Discussion (Misc queries) | |||
limit column entries | Excel Worksheet Functions | |||
Column limit for exporting | Excel Discussion (Misc queries) | |||
Column Limit | Excel Programming |