Results 1 to 11 of 11

Speed up a macro

Threaded View

  1. #1
    Forum Contributor Rick_Stanich's Avatar
    Join Date
    11-21-2005
    Location
    Ladson SC
    MS-Off Ver
    Office365
    Posts
    1,177

    Speed up a macro

    Attached is a workbook that takes an imported text file, inserts rows with text.
    It is SLOW, you can watch each line being inserted with the text, I would think with such a small sample dataset it would be much much quicker.

    Information: See attached xls file.
    On sheet1 is the imported data, sheet2 is a copy of the imported data so one can copy and paste to sheet1 as needed with out re-importing for test purposes and only for this query. (Sheets2 thru 3 are not used otherwise).

    There is a command button on sheet one which will run macro "aaa". If you run this you will see how slow it is and exactly what it is doing.

    I am simply looking for a way to speed this up, I have some files that are 10 times the size of the sample data and they take 10 or more minutes to run.

    Be aware! I am not a professional VBA programmer, but I did stay at a Holiday Inn once.

    Any hints, tips or examples are welcome.
    Attached Files Attached Files
    Last edited by Rick_Stanich; 01-13-2010 at 01:39 PM.
    Regards

    Rick
    Win10, Office 365

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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