+ Reply to Thread
Results 1 to 3 of 3

Any Suggestions on Optimizing My First VBA Code?

  1. #1
    Registered User
    Join Date
    02-02-2016
    Location
    Gainesville, FL
    MS-Off Ver
    2016
    Posts
    8

    Any Suggestions on Optimizing My First VBA Code?

    Hi,

    Below is the first VBA code I have created individually, but it seems "slow."

    Any suggestions oh how to revise for optimization?

    Please Login or Register  to view this content.
    If any additional information is needed, please let me know.

    Thanks,

    TW

  2. #2
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: Any Suggestions on Optimizing My First VBA Code?

    Hello and welcome to the forum. One of the things you can do to optimize your code would be to remove all the .Select and Selection.

    Please Login or Register  to view this content.
    Another item is that the .Range("A1") is an oddity. It doesn't do anything. You code is simply using the range reference from the active cell.
    Another item is the use of active cell. It is not usually the most desired situation. Instead you would be better served to identify the actual range.
    There are other things but without more information it would be hard to explain.

    Why don't you submit a detailed description of what you are actually trying to accomplish and then you can see some alternative code to accomplish it. I have a feeling it could be condensed to a simple line or two.
    If you are happy with my response please click the * in the lower left of my post.

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2012
    Location
    Unknown
    MS-Off Ver
    Unseen
    Posts
    429

    Re: Any Suggestions on Optimizing My First VBA Code?

    A couple of examples ... should give you some clues

    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)

Similar Threads

  1. need help optimizing my code
    By NirXY in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2013, 11:49 AM
  2. Optimizing Code
    By tucanj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-04-2013, 11:08 PM
  3. Optimizing Code
    By dcgrove in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2012, 11:20 AM
  4. Optimizing the Vlookup code in VB. Repitive code with different referencing range.
    By raknahs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-23-2010, 05:03 PM
  5. Need Help Optimizing Some Code
    By jackb1117 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2009, 07:50 PM
  6. Optimizing code
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-06-2009, 11:40 PM
  7. Help Optimizing Code
    By mgaworecki in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-23-2008, 08:26 AM
  8. Optimizing Code
    By Jim Thomlinson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-02-2005, 10:11 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