Dim namearray() As String
Dim NewName As String
Dim i As Integer
i = 0
NewName = InputBox("Enter the candidates name:", "candidatename", "", 500, 500)
Do Until String.IsNullOrEmpty(NewName)
ReDim Preserve namearray(i)
namearray(i) = NewName
i += 1
NewName = InputBox("Enter the candidates name:", "candidatename", "", 500, 500)
Loop
Loops until you enter an empty name.
Reputation Points: 218
Solved Threads: 201
Veteran Poster
Offline 1,024 posts
since Aug 2008