+ Reply to Thread
Results 1 to 3 of 3

To shorten the VBA code

  1. #1
    Forum Contributor
    Join Date
    03-13-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    152

    To shorten the VBA code

    Hi Team,

    I have the following vba code and assigned it to a button. It is working fine but it takes 2 minutes to execute. Please let me know how to shorten this code to execute faster.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,008

    Re: To shorten the VBA code

    Seems like every entry must be forcing a re-calc.

    Start with:


    Please Login or Register  to view this content.

    and finish with

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Contributor
    Join Date
    03-13-2013
    Location
    Mumbai
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: To shorten the VBA code

    You are really great. Thank you so much. It executes within 10 seconds now.

+ 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. To shorten the code
    By gan_xl in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2014, 04:38 AM
  2. please help shorten this code
    By newbiewexcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-22-2013, 11:38 PM
  3. [SOLVED] Shorten my Code
    By yoko21 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-04-2013, 07:07 AM
  4. [SOLVED] Very inefficient code because of different sizes of arrays, how do i shorten my code?
    By Brammer88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-28-2012, 04:49 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