+ Reply to Thread
Results 1 to 4 of 4

Subscript out of range error

  1. #1
    Forum Contributor
    Join Date
    02-07-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    172

    Subscript out of range error

    Can someone identify what is causing this problem?

    Please Login or Register  to view this content.
    edit: its something to do the Range("Headline").Value = aTD(3) line. Don't know what though.
    Last edited by spursrule68; 06-01-2012 at 10:20 AM.

  2. #2
    Forum Contributor
    Join Date
    02-07-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    172

    Re: Subscript out of range error

    question updated.

  3. #3
    Forum Contributor
    Join Date
    02-07-2012
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    172

    Re: Subscript out of range error

    please guys, this is urgent.

    I suspect its a fairly simple fix

  4. #4
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: Subscript out of range error

    if sTD is "cat, dog", Split will return a two element array and there will be no aTD(3).

    A quick and dirty fix would be to change this line so there is alwayas an aTD(3)
    Please Login or Register  to view this content.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1