Results 1 to 4 of 4

Thread: Procedure too large

  1. #1

    Procedure too large

    Hello team VBA,

    I have an issue with a procedure thats too large.

    Within my wee "app" there are a few related procedures that I use as a almost a database, with just under a 1,000 items.

    Problem is that I've essentially run out of room to add more stuff.

    I've tried simply splitting it into smaller chunks but it errors out.

    With Data2
    .Data_2_stuff = "text"
    .Data_2_more_stuff = "more text"
    End With
    Adddata2 Data2

    Any ideas would be great thanks, as I need to add more elements.

    I have previously split it up, which is how I wound up with #2, I dont really want to split it again...


  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Apr 2005
    If it's too large you are going to have to split it up some more, I cannot see any other option.
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    You do realize that word is not the proper program for a database.

  4. #4
    VBAX Sage
    Apr 2007
    United States
    I'm getting a vibe that you have just under 1000 pieces of data embedded in your macro and that you want to add more

    Without seeing what you have, I think you'd be better off not using Word as a database like arnelgp says, but storing the 'data' somewhere else like a CSV or TXT file and read the file into memory when you need it


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts