+ Reply to Thread
Results 1 to 4 of 4

Reviewing Code

  1. #1
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Reviewing Code

    Hello everyone. This is not a specific programming questions. I have started to finish an automation project. I was wondering if someone with solid VBA experience would be interested in reviewing my code. The code spans several modules and comprises approximately 2,000 lines of written code. Most of that code is repetitious and I suspect a more senior programmer could provide hints, suggestions or even ways to condense the code so that it is more readable and more effecitent. It would be greatly appreciated and improve my VBA skills. Note that the code does not "fit" into the Excel forums space requirements. Thanks.
    Last edited by AnthonyWB; 08-20-2010 at 10:59 AM. Reason: Written mistake

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Reviewing Code

    Is that 2,000 or 20,000?! Can you post a sample of a bit you think could be improved. I doubt anyone will undertake to look through that much code, at least not for free!

  3. #3
    Forum Contributor
    Join Date
    03-30-2010
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    458

    Re: Reviewing Code

    Here is some of the code: This is a small chunk. I am sure this can be trimmed down.

    Please Login or Register  to view this content.

  4. #4
    Valued Forum Contributor
    Join Date
    08-26-2006
    Location
    -
    MS-Off Ver
    2010
    Posts
    388

    Re: Reviewing Code

    Subs Create_105_File_1, Create_105_File_2, Create_105_File_3 all do the same thing with a different string, so replace with a single Sub which takes a string argument(s)? and call by passing each string into it.

    Likewise, in Sub Create_Disclosure_Breakdown_Files the bits where you Add and Save can be slimmed down the same way.

+ 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