+ Reply to Thread
Results 1 to 2 of 2

Macro code too long: "Procedure too large" Error

  1. #1
    Registered User
    Join Date
    06-10-2010
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2007
    Posts
    70

    Macro code too long: "Procedure too large" Error

    I have a code that is way too long so I keep getting the error: "Procedure too large". Is there a way to fix it? I dont know how to write the code another way.



    This is my code. This is just for 1. There are about 37. Maybe there's another way to do it.

    the code is just if "K7" = 1 then do ALL that. (goes up to if "K7" = 37 do something, and maybe more)

    The code works fine if I only do around 10 but anymore more than that is too much.



    Any Ideas?



    Please Login or Register  to view this content.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Macro code too long: "Procedure too large" Error

    Try using a loop.

    Please Login or Register  to view this content.
    Martin

+ 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