Results 1 to 13 of 13

Thread: Subscript out of range error [resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2000
    Location
    the UK
    Posts
    265

    Subscript out of range error [resolved]

    In this code, if DomainQuery is empty I get this error:

    Run-time error '9':
    Subscript out of range


    Code:
    DomainQuery = Split(TempDomainQuery, " ")
    
    If Len(DomainQuery(0)) < 3 Or Len(DomainQuery(0)) > 63 Then
        MsgBox "Domain names must be between 3 and 63 characters long.", vbExclamation + vbOKOnly, "Domain Name Error"
        Exit Sub
    End If

    Any ideas what might be wrong?

    Simon
    Last edited by simonp; Apr 1st, 2004 at 05:07 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width