+ Reply to Thread
Results 1 to 13 of 13

SpeedUp and Optimize My Code

  1. #1
    Registered User
    Join Date
    07-06-2017
    Location
    Long Island, New York
    MS-Off Ver
    2016
    Posts
    7

    SpeedUp and Optimize My Code

    Please Login or Register  to view this content.
    Last edited by mwinning8; 07-06-2017 at 12:43 PM.

  2. #2
    Registered User
    Join Date
    07-06-2017
    Location
    Long Island, New York
    MS-Off Ver
    2016
    Posts
    7

    Re: SpeedUp and Optimize My Code

    Please Login or Register  to view this content.
    Last edited by mwinning8; 07-06-2017 at 12:43 PM.

  3. #3
    Registered User
    Join Date
    07-06-2017
    Location
    Long Island, New York
    MS-Off Ver
    2016
    Posts
    7

    Re: SpeedUp and Optimize My Code

    Please Login or Register  to view this content.
    Last edited by mwinning8; 07-06-2017 at 12:43 PM.

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: SpeedUp and Optimize My Code

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: SpeedUp and Optimize My Code

    I'd just evaluate the formula and just have the value in the sheet:


    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    07-06-2017
    Location
    Long Island, New York
    MS-Off Ver
    2016
    Posts
    7

    Re: SpeedUp and Optimize My Code

    Hello,

    Thank you very much for the advice, I forgot that was in VBA. My question is how would I set up the Evaluate for ranges of data? Whenever I add it to the from of a code that is supposed to span multiple cells, it only returns the first cells value. That being said, it seems to be running a bit faster already!

  7. #7
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: SpeedUp and Optimize My Code

    Maybe:

    Please Login or Register  to view this content.
    * If that doesn't work remove the leading "=" in the formula

  8. #8
    Registered User
    Join Date
    07-06-2017
    Location
    Long Island, New York
    MS-Off Ver
    2016
    Posts
    7

    Re: SpeedUp and Optimize My Code

    Sorry to keep pestering you about this, but I cannot seem to get it to work. I've tried:

    Please Login or Register  to view this content.
    And that did not work, only returning 0s. When I removed the = sign, that too only returned 0s. I continue to keep getting the first value across.
    Last edited by mwinning8; 07-07-2017 at 10:07 AM.

  9. #9
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: SpeedUp and Optimize My Code

    What I see is:

    Please Login or Register  to view this content.
    What I advocate is:

    Please Login or Register  to view this content.
    Try that.

  10. #10
    Registered User
    Join Date
    07-06-2017
    Location
    Long Island, New York
    MS-Off Ver
    2016
    Posts
    7

    Re: SpeedUp and Optimize My Code

    Oh God, I'm so sorry about that. I believe this time I changed the formula correctly. I made the change to .Value first and it returns me the correct values. However, once I added the Evaluate() string, it once again only returns the first value across all rows.

    Please Login or Register  to view this content.

  11. #11
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: SpeedUp and Optimize My Code

    I need to play with it - can you:

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  12. #12
    Registered User
    Join Date
    07-06-2017
    Location
    Long Island, New York
    MS-Off Ver
    2016
    Posts
    7

    Re: SpeedUp and Optimize My Code

    attached is the most bare bones thing I could give you. My actual file is 10 MB and the screen I have been discussing is about 5 MB, so the website limitations limited what I could send. I copied the values of the screen before and after a user input to show how it works. I should emphasize that currently the code does everything I need it to do, it just takes about 1-2 minutes to run. I am trying to get it to run completely at around 10 seconds and that was the advice I was looking for. Thank you once again for all the advice and if you need anymore files, I will do what I can!
    Attached Files Attached Files

  13. #13
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: SpeedUp and Optimize My Code

    I think I'm at a loss here - there is no meat in your sample

+ 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. Optimize a code
    By pezalmendra in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-06-2015, 05:31 PM
  2. Optimize code
    By DarkKnightLupo in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 02-19-2014, 08:58 AM
  3. Optimize a slow code...
    By benoitly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2013, 01:44 PM
  4. speedup the code for deleting rows
    By maheshwow in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-17-2012, 02:41 PM
  5. Optimize code
    By miso.dca in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-08-2011, 03:35 PM
  6. Optimize Alphabetizing VBA Code
    By NewExcelUser in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-29-2010, 11:51 PM
  7. Optimize VBA code
    By doodlebug in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2007, 07:53 AM

Tags for this Thread

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