+ Reply to Thread
Results 1 to 4 of 4

Compile Error: Procedure too Large

  1. #1
    Registered User
    Join Date
    06-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    6

    Compile Error: Procedure too Large

    I'm working in VBA and have a particularly long code that duplicates many times. I know this question has been posted on here before, and my best guess from reading previous threads is that I need to divide my code into several procedures. However, I've tried using several examples and haven't been able to figure it out. Below is just a small section of my code- it runs over 100 rows, so it definitely exceeds the max size. Would anyone have any suggestions as to how I can break this up? Thanks so much.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127

    Re: Compile Error: Procedure too Large

    What exactly are you trying to do? It seems like you are trying to change the same cells in a second sheet whenever the cell is chaged in the first sheet. (For example, a change in sheet1 to cell C5 will make sheet2 c5 then same value). Is this correct?

    If so, try some variation of the following code:

    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Compile Error: Procedure too Large

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-05-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    6

    Re: Compile Error: Procedure too Large

    Awesome that worked perfectly- thanks so much!!
    Last edited by tarab; 06-11-2013 at 05:50 PM.

+ 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