+ Reply to Thread
Results 1 to 8 of 8

Procedure too large

  1. #1
    Registered User
    Join Date
    04-25-2019
    Location
    colombo
    MS-Off Ver
    2007
    Posts
    12

    Procedure too large

    Respected Sir/Madame
    I made this code for update table's data to another range of tables. but when it runs it says Procedure Too Large. in my full code it has 4000+ lines ,please help me to resolve this. (i need this code to runs in 32bit Excel 365 )

    Thank you very much.

    Please Login or Register  to view this content.
    Last edited by jani11; 04-25-2019 at 01:31 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Procedure too large

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. As you are new here, I have added them for you this time.)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    04-25-2019
    Location
    colombo
    MS-Off Ver
    2007
    Posts
    12

    Re: Procedure too large

    okay sorry for the mistake.
    Last edited by jani11; 04-25-2019 at 01:43 AM.

  4. #4
    Registered User
    Join Date
    04-25-2019
    Location
    colombo
    MS-Off Ver
    2007
    Posts
    12

    Re: Procedure too large

    here i attached the excel file. PLEASE HELP ME...!!!
    Attached Files Attached Files

  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,859

    Re: Procedure too large

    Instead of someone here trying to interpret what you are doing in the code (a laborious task), please explain in simple English what you are attempting to do. In this manner, it may be possible to offer an alternative solution instead of trying to repair what you already have.

    Your uploaded workbook contains no data nor any explanation of your required actions. Help us to help you by telling specifically what is supposed to happen.
    Last edited by alansidman; 04-25-2019 at 10:45 AM.
    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

  6. #6
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: Procedure too large

    and in addition to a more clear explanation also remove the password protection on VBA project and then upload the file again.. with a password to get into VBA it is impossible to help..

  7. #7
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,903

    Re: Procedure too large

    You appear to be repeating this chunk, just with a different offset each time:

    Please Login or Register  to view this content.
    so you should make that a separate routine that takes the offset as an argument:

    Please Login or Register  to view this content.
    then your code sections above reduce to:

    Please Login or Register  to view this content.
    and so on.
    Rory

  8. #8
    Registered User
    Join Date
    04-25-2019
    Location
    colombo
    MS-Off Ver
    2007
    Posts
    12

    Re: Procedure too large

    Thank you all thanks a lot. Its Done.
    Thanks for your help.. Thanks again

+ 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] VBA-Procedure Too Large!
    By barrymac20 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-10-2018, 08:06 AM
  2. Help! Procedure too large
    By Lex39 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-11-2018, 10:34 AM
  3. procedure too large
    By mrjackg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-02-2014, 07:42 PM
  4. Procedure too large
    By yikwei in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-31-2014, 07:49 AM
  5. Procedure too large
    By theresap in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-14-2010, 02:54 PM
  6. Procedure Too Large?
    By GetSet in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-30-2010, 10:34 AM
  7. Procedure too large
    By dkinnz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2007, 04:53 PM

Tags for this Thread

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