+ Reply to Thread
Results 1 to 4 of 4

Implementing same code into a new module

  1. #1
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Implementing same code into a new module

    Hi I was given a piece of code and told it would make my program run quicker but I don't really know how to implement my original code into the new piece. I have tried substituting pieces of code into it but I always get an error or the wrong outcome. If anyone could help me out with it I would be very grateful.

    ORIGINAL CODE

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    NEW LAYOUT

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Implementing same code into a new module

    Hi,

    1. Remove
    Please Login or Register  to view this content.
    from the code, otherwise you will not notice strange behavior

    2. Replace
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    If you still have problems a sample workbook with test data would be helpful
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  3. #3
    Registered User
    Join Date
    06-26-2013
    Location
    Northern Ireland
    MS-Off Ver
    Excel 2003, 07, 10
    Posts
    92

    Re: Implementing same code into a new module

    The 'newSplitSheets' code is quite confusing to me anyway and when I put your code in it didn't work. The other code is working surprisingly fast now and I can't understand why, must be a temperamental piece of code! Thanks for the help anyway, always much appreciated

  4. #4
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Implementing same code into a new module

    If you still have performance problems try my interpretation of splitSheets, if not please mark this thread solved.

    Please Login or Register  to view this content.

+ 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