+ Reply to Thread
Results 1 to 6 of 6

Cleaning up my codes to ensure a faster and smaller sheets

  1. #1
    Forum Contributor
    Join Date
    06-25-2018
    Location
    South-Africa Pretoria
    MS-Off Ver
    2016
    Posts
    143

    Cleaning up my codes to ensure a faster and smaller sheets

    Hi There

    Please can Someone assist me with my sheet. I have my macros and I am new to VBA and need to clean up my codes. My sheet still needs to get few sheets with 2000+ rows and 10 rows of raw data..

    I know it is a lot to ask but please if someone can assist.
    There is a few Hidden tabs as well.

    Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Cleaning up my codes to ensure a faster and smaller sheets

    Hello,

    it may be a "dumb question" but does your macro actually work at the moment and you simply want to refactor it to produce a smaller code base or is your request broader than simply refactoring your existing code?

    Cheers

    Jmac1947

    1. Please consider clicking on the * Add Reputation if you think this post has helped you
    2. Mark your thread as SOLVED when question is resolved

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Cleaning up my codes to ensure a faster and smaller sheets

    No way to test, but shorter based on your code is correctly working and all the sheet structures are the same.
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    06-25-2018
    Location
    South-Africa Pretoria
    MS-Off Ver
    2016
    Posts
    143

    Re: Cleaning up my codes to ensure a faster and smaller sheets

    it works great but i still need to add al the raw data and this will push the size up more than 10mb.

  5. #5
    Forum Contributor
    Join Date
    06-25-2018
    Location
    South-Africa Pretoria
    MS-Off Ver
    2016
    Posts
    143

    Re: Cleaning up my codes to ensure a faster and smaller sheets

    Quote Originally Posted by jindon View Post
    No way to test, but shorter based on your code is correctly working and all the sheet structures are the same.
    Please Login or Register  to view this content.
    Hi Jindon

    Thanks for the feedback. This is the code that i should use in my "Summary" worksheet to populate my dash.

    All of my sheets are duplicated based on structure and design. all that differs is the raw data that gets imputed.

    I am really new to vba and therefore only know codes based in single events and not multiple events like arrays ext.

    If I can get a description of what the above code actually does, then i might understand the structure behind the string.

  6. #6
    Forum Contributor
    Join Date
    06-25-2018
    Location
    South-Africa Pretoria
    MS-Off Ver
    2016
    Posts
    143

    Re: Cleaning up my codes to ensure a faster and smaller sheets

    Quote Originally Posted by jmac1947 View Post
    Hello,

    it may be a "dumb question" but does your macro actually work at the moment and you simply want to refactor it to produce a smaller code base or is your request broader than simply refactoring your existing code?
    correct. So all my macros works. Took me a day to do though HAHA, But I know there should be a better way to code the macros instead of the way I did it.

    Please if I can get an example as all my different color tabs works the same except for the "Purple" Tabs. They are my master overview tabs of all the tabs

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Codes for Prevent users from adding sheets, deleting sheets, hiding/unhiding sheets
    By geniusufo007 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2017, 11:57 PM
  2. Combine four codes with one code to make work faster
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2017, 11:40 AM
  3. Cleaning Multiple Sheets Across Time.
    By Insert Name in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-29-2014, 11:08 PM
  4. [SOLVED] Stock codes cleaning up
    By makinmomb in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 06-22-2014, 10:52 AM
  5. Coding Styles - Making VBA "FASTER SMALLER BETTER"
    By exc4libur in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-02-2011, 01:18 PM
  6. Replies: 2
    Last Post: 01-16-2010, 09:27 AM
  7. Better codes to run faster?
    By taych in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2005, 10:59 PM

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