+ Reply to Thread
Results 1 to 2 of 2

VBA speed performance issues with nested loops during import to table range

  1. #1
    Registered User
    Join Date
    06-29-2016
    Location
    Stockholm
    MS-Off Ver
    365 x64 Swedish
    Posts
    1

    VBA speed performance issues with nested loops during import to table range

    Having trouble with speed of a vba script for importing data into an excel table. Hoping someone here can help. As the comments in my code state this script takes about 8 seconds to import 100 rows of data. I would love to bring it down to fractions of a second.

    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
    5,937

    Re: VBA speed performance issues with nested loops during import to table range

    Don't iterate. Apply a filter to the first column that hides all the data that you don't want, then copy the entire table and paste it with one line of code. If you need to change the numberformat, apply it to entire columns rather than cell by cell.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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. [SOLVED] Nested For Each In Range Next Loops
    By MattyG1406 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-07-2015, 05:18 PM
  2. VBA For loop, optimize speed and performance
    By britzer in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2014, 08:56 AM
  3. [SOLVED] Speed up VBA code, loops
    By Buster^ in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-24-2014, 05:33 PM
  4. [SOLVED] Combine VBA Modules to Speed Performance???
    By Jester0001 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-30-2013, 06:56 PM
  5. Replies: 0
    Last Post: 01-28-2013, 02:25 PM
  6. Speeding Up Excel Performance-VBA Loops
    By okelly in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-17-2006, 10:45 AM
  7. [SOLVED] Range.Delete and Range.Resize.Name performance issues
    By Test.File in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-15-2005, 12:54 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