+ Reply to Thread
Results 1 to 3 of 3

is [A1] faster than Range("A1").select

  1. #1
    Forum Contributor
    Join Date
    11-22-2020
    Location
    Sydney Australia
    MS-Off Ver
    365
    Posts
    202

    is [A1] faster than Range("A1").select

    Hi All,

    I have read this article: http://excelitems.com/2010/12/optimi...er-macros.html

    where it states that to speed up macro processing, it is better to use [A1] than Range("A1").

    Does [A1] make the compiler faster because it does not have to resolve the Range("A1") reference?

    Where Application.Screenupdating = False stops the compiler from repainting the screen.

    So these are two very different components but will have a combined effect in decreasing processing time.

    Am I on the right track in my thinking?

    Thanks

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,067

    Re: is [A1] faster than Range("A1").select

    [A1] is not faster - the Range("A1") syntax should be faster. You could simply time it yourself.

    Screenupdating will have a much bigger effect though.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: is [A1] faster than Range("A1").select

    On the subject of speeding up macros, try and avoid loops which do something in the Excel App each pass through the loop. Instead read the data yuo want to process into a VBA array and process that with the loop and only write the array back to Excel when the loop is complete.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ 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. Replies: 11
    Last Post: 06-05-2020, 02:08 AM
  2. Make 'ActiveSheet.Range("C5:N100").Select' - select a dynamic range of cells
    By white_ross in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-13-2016, 10:00 AM
  3. Faster way in "Sourcing" of "Data Validation"
    By shaterroi in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-17-2015, 04:47 AM
  4. .select method with worksheets object ex. Sheets("Sheet1").range.select fail
    By RobCan in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 12-19-2014, 07:01 PM
  5. Replies: 5
    Last Post: 01-23-2014, 11:02 AM
  6. Replies: 1
    Last Post: 01-07-2014, 09:08 AM
  7. [SOLVED] "Criteria Range" in the "Data/Filter/Advanced Filter" to select Du
    By TC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-11-2005, 10:06 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