+ Reply to Thread
Results 1 to 11 of 11

Run time error 9 subscript out of range

  1. #1
    Registered User
    Join Date
    10-23-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    25

    Run time error 9 subscript out of range

    I am having an issue with run time error '9': subscript out of range, can someone please help me with this? I looked at the following thread but couldnt figure it out http://www.excelforum.com/excel-prog...run+time+error


    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Run time error 9 subscript out of range

    Are there any hyperlinks in B4?
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    10-23-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Run time error 9 subscript out of range

    Thank you for your guidance by the way, new to the forum and haven't read through all the proper etiquette. Yes there is a hyperlink in all cells b1:b:10. I also put the code in to pop up error and go to the next but each one errored after it. It just seems to stop at b4. The link works when I click on it, wont for you because its through internal reporting on our network.
    Below is the formula I have in place for this hyperlink. http://ert.pbg.pvt/infosis/reportvie...aJHqQjjT7IplKo
    =HYPERLINK(LEFT(MID(A4,FIND("http:",A4),1000),LEN(MID(A4,FIND("http:",A4),1000))-2),LEFT(MID(A4,FIND("http:",A4),1000),LEN(MID(A4,FIND("http:",A4),1000))-2))

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Run time error 9 subscript out of range

    What do you see if you add this after the For?
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-23-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Run time error 9 subscript out of range

    You mean like this? If so, I get a compile error: syntax error

    Please Login or Register  to view this content.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Run time error 9 subscript out of range

    Sorry should have said after the For statement.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-23-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Run time error 9 subscript out of range

    It comes up red and with the same error as earlier stated.

  8. #8
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Run time error 9 subscript out of range

    Sorry, I'm being a bit lazy.

    Can you attach a sample workbook so we can have a look at it?

    PS Here's what that code should be -
    Please Login or Register  to view this content.
    Last edited by Norie; 12-05-2012 at 01:39 PM.

  9. #9
    Registered User
    Join Date
    10-23-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Run time error 9 subscript out of range

    Still the same error, just now the message box comes up that I have to click ok on. Thank you for help.
    ERT Utilization.xlsm

  10. #10
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,644

    Re: Run time error 9 subscript out of range

    Strange the message box says there are 0 hyperlinks in B4.

    Also if you right click cells B1, B2 or B3 you have an option to Edit Hyperlink... but you don't get that with B4.

    If I copy B3 down to B4 things seem to change, the message box says B4 has 1 hyperlink it has the Edit Hyperlink... option.

  11. #11
    Registered User
    Join Date
    10-23-2012
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Run time error 9 subscript out of range

    THANK YOU! I was pretty sure I had the same formula in each cell but I dragged them down and now they all run. Thank you very very much! Consider this solved.

+ 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