+ Reply to Thread
Results 1 to 6 of 6

subscript out of range. I know why i am getting it

  1. #1
    Registered User
    Join Date
    04-06-2020
    Location
    South africa, Pretoria
    MS-Off Ver
    2013
    Posts
    22

    subscript out of range. I know why i am getting it

    Good day all. I am getting an error subscript out of range. I know why i am getting it, I just need your help to bypass it.

    I am importing data from mysql. Financial year vs last year financial year. but being in April the may, June July etc months does not exist for this year so i need to ignore it.
    Below is wehre i do calculations for the columns 40 and 41. but they do not exist with this import but might for a future import. How do i if exist then else ignore?


    Please Login or Register  to view this content.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: subscript out of range. I know why i am getting it

    Perhaps adding a line of code that will allow it to ignore. Try this

    Please Login or Register  to view this content.
    https://docs.microsoft.com/en-us/dot...rror-statement
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    04-06-2020
    Location
    South africa, Pretoria
    MS-Off Ver
    2013
    Posts
    22

    Re: subscript out of range. I know why i am getting it

    Thank you thank you thank you

  4. #4
    Registered User
    Join Date
    04-06-2020
    Location
    South africa, Pretoria
    MS-Off Ver
    2013
    Posts
    22

    Re: subscript out of range. I know why i am getting it

    How do I mark as solved?

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: subscript out of range. I know why i am getting it

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: subscript out of range. I know why i am getting it

    Select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. subscript is out of range
    By ulvrah in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-23-2019, 06:08 AM
  2. Subscript out of range
    By Biplab1985 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 06-08-2016, 04:21 PM
  3. Replies: 1
    Last Post: 06-15-2015, 01:56 AM
  4. [SOLVED] subscript out of range
    By ngkj in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-17-2012, 03:19 AM
  5. Subscript out of range error while populating array from range.
    By Aussiexile in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2010, 02:22 AM
  6. Subscript out of range error when trying to select a range
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-01-2010, 07:57 PM
  7. Subscript Out Of Range
    By aldredd in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-03-2008, 03:58 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