+ Reply to Thread
Results 1 to 4 of 4

Procedure too large error

  1. #1
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Procedure too large error

    I'm getting this error when I try to run my code. I know it's possible to do it with "For", but I don't know how, once the conditions are words instead of a sequence of numbers.

    Ps: Janeiro = January (it's in portuguese)

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Procedure too large error

    Hi luizmachado,

    I don't think there is anything wrong with your code. The problem is that you are trying to fit ten pounds of code into a five pound capacity Excel VBA module.

    You probably have to put the code into two or more Excel Code Modules.

    For Example:
    In Code Module1:
    Please Login or Register  to view this content.
    In Code Module2:
    Please Login or Register  to view this content.
    I hope this helps.

    Lewis

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

    Re: Procedure too large error

    You seem to be repeating the same 7 lines of code 12 times, one for each month.

    So why not use an array with the months (in Portugese) in it?
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    01-03-2016
    Location
    Rio de Janeiro, Brazil
    MS-Off Ver
    2016
    Posts
    125

    Re: Procedure too large error

    Thank you Lewis and Norie!! Both of yours solutions worked!! Thank youu =)

+ 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] Compile Error: Procedure too large
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-11-2018, 11:08 AM
  2. [SOLVED] Procedure Too Large Error VBA
    By Rudidw in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-19-2015, 06:18 AM
  3. [SOLVED] Compile Error: Procedure too large
    By jontherev in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-04-2015, 02:26 PM
  4. [SOLVED] Procedure Too Large Error...
    By ekf23 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-11-2014, 10:53 AM
  5. Compile error: Procedure too large
    By Knitty in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-04-2011, 06:52 PM
  6. Error Message (Compile Error, Procedure too Large)
    By dreicer_Jarr in forum Excel Programming / VBA / Macros
    Replies: 27
    Last Post: 10-29-2010, 03:52 AM
  7. [SOLVED] VBA Compile error: Procedure too large?
    By Jerry Dyben in forum Excel General
    Replies: 1
    Last Post: 10-31-2005, 07:05 PM

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