View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Justin[_15_] Justin[_15_] is offline
external usenet poster
 
Posts: 5
Default Array of values in 1 textbox

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