Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
not sure what you're trying to do, but this worked for me
Private Sub TextBox1_Change() Dim mediaArray() As String Dim i As Long mediaArray = Split(textbox1.Value, vbNewLine) For i = LBound(mediaArray) To UBound(mediaArray) Debug.Print mediaArray(i) Next End Sub -- Gary "Justin" wrote in message ups.com... I'm having problems with a piece of code. The form has two controls: *Text Box *Submit button Users should be able to enter multiple lines in the textbox (this is enabled) and each line is entered into a new row. The code seems stuck in this section: Dim mediaArray() As String Dim count As Integer Dim start As Integer count = Split(txtMedia.Value, vbNewLine) ReDim mediaArray(count) As String mediaArray = txtMedia.Value What am I doing wrong? -Justin |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Set Textbox value = large(ARRAY,k) | Charts and Charting in Excel | |||
Array: Counting multiple values within array | Excel Worksheet Functions | |||
How do I add TextBox.values? | Excel Programming | |||
How do I add TextBox.values? | Excel Discussion (Misc queries) | |||
How do I add TextBox.values? | Excel Worksheet Functions |