+ Reply to Thread
Results 1 to 5 of 5

macro to be faster

  1. #1
    Registered User
    Join Date
    07-17-2006
    Posts
    54

    macro to be faster

    Hi,

    I just made that code, and i saw that it's really slow. So i tried to find if there was a fastest way to right that kind of macro! thanks for helping me! So when i add a new object with the userform it add around 6000 cells(366 rows(for each day of the year) x 17 columns(some with formulas, others with info from userform))
    Please Login or Register  to view this content.
    Last edited by mhax; 06-27-2007 at 08:55 AM.

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    Turn off calculation at the start of the macro & back on at the end
    Please Login or Register  to view this content.
    or make your code more efficient by

    replace
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    replace your for loop to single line comands

    this from within the for loop
    Please Login or Register  to view this content.
    becomes
    Please Login or Register  to view this content.
    Apply similar changes to the other lines of code within the for loop
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  3. #3
    Registered User
    Join Date
    07-17-2006
    Posts
    54
    i get an error on that line you gave me, and i dont know why :S! everything seems to work!
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    07-17-2006
    Posts
    54
    i heard that array are way faster than loop! anybody got an idea for doing that loop but with arrays?
    thanks

  5. #5
    Registered User
    Join Date
    07-17-2006
    Posts
    54
    anyone????

+ 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