+ Reply to Thread
Results 1 to 10 of 10

help with invalid subscript

  1. #1
    Registered User
    Join Date
    08-18-2014
    Location
    Chevy Chase, MD
    MS-Off Ver
    2007
    Posts
    8

    help with invalid subscript

    Someone helped me create this a few years ago, I just added data and now when I try to "add new student" it says the subscript is out of range, can anyone help me fix? I'd also like to upgrade so that when the data is altered in the "Students at a Glance" Tab it automatically updates the top information on the individual tabs.Copy ESOL.xlsm

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: help with invalid subscript

    You do not have a sheet name(Glance) but you have GLANCE-ADMIN
    Change this line

    Please Login or Register  to view this content.

    INTO
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: help with invalid subscript

    subscript is out of range because of this line:

    Please Login or Register  to view this content.
    You don't have a worksheet named that. I'm guessing you recently renamed a tab? Anyway, either change the tab name back to Glance or modify the code so that the name of a worksheet you have in this workbook is on that line.

    You'll have to explain the upgrade you want in a little more detail, I'm not sure what your asking. Can you provide an example?

  4. #4
    Registered User
    Join Date
    08-18-2014
    Location
    Chevy Chase, MD
    MS-Off Ver
    2007
    Posts
    8

    Re: help with invalid subscript

    Copy ESOL.xlsm

    Thank you so much! I was able to fix the reference for glance, but now when I click the "Add students" button, it stops after 48and says "error 400". Any suggestions? I'm so grateful for your help!

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: help with invalid subscript

    I do not know which code is addbutton. You have a link to external sheet. You need to disable the link and run the code.

  6. #6
    Registered User
    Join Date
    08-18-2014
    Location
    Chevy Chase, MD
    MS-Off Ver
    2007
    Posts
    8

    Re: help with invalid subscript

    Thank you, is there any trick to finding out where the external link is? There shouldn't be one, so I'm not sure where to being looking.

  7. #7
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: help with invalid subscript

    Hi vonanne0

    Look in your Named Ranges. Fix or delete the #Ref! errors. This may help with this
    is there any trick to finding out where the external link is? There shouldn't be one, so I'm not sure where to being looking
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: help with invalid subscript

    Yes, when click yes to the link, it shows you the source of the link. You have few options once yes to the link.
    I can not remember where exactly, but there is a setting on your Excel's options( I think it is advance) where you can disable all links.
    In your sheet, you get another error of circular reference. I think that might be the link.

  9. #9
    Registered User
    Join Date
    08-18-2014
    Location
    Chevy Chase, MD
    MS-Off Ver
    2007
    Posts
    8

    Re: help with invalid subscript

    Copy ESOL.xlsm

    Okay, I took out the error references, there were in the conditional formatting. However, I still have the same problem When I click the gray button at the bottom (cells 76-78), I get an error and not all the student tabs are created.

  10. #10
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: help with invalid subscript

    Hi vonanne0

    Code works for me...adds 69 new Worksheets. Notice I changed/added a few Lines of Code here
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Subscript out of range
    By Lasloja in forum Access Tables & Databases
    Replies: 4
    Last Post: 03-19-2013, 01:52 AM
  2. [SOLVED] subscript out of range
    By ngkj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-17-2012, 03:19 AM
  3. Excel 2007 : Subscript out of range
    By ususgoreng in forum Excel General
    Replies: 3
    Last Post: 05-26-2011, 06:30 PM
  4. how to add a subscript using VB
    By bhokalivarun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-04-2009, 09:18 PM
  5. Subscript out of range
    By bishoposiris in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2009, 10:57 AM

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