Results 1 to 11 of 11

Flatten Data Script

Threaded View

  1. #1
    Forum Contributor
    Join Date
    02-14-2007
    Location
    Chester, England
    MS-Off Ver
    2010 & 2016
    Posts
    312

    Flatten Data Script

    Hi All

    I have written a small bit of script which loops through data. It assumes that the data is sorted by employee. If there is more than one record for the same employee it will place certain fields onto the next available column for the top row of data for that employee (effectively flattening out history records on to one row)

    The code does what I want but is intended to be run on a data set of > 300,000 records. When I have tried this it takes ages (I stopped it after 15 minutes and it had only done 14000 records).

    I have tried to re-write this using "for, each, next" instead of activating each cell but I couldn't work out how to include the "If" and "Do While"

    I have attached a sheet with the script and some sample records. I would really appreciate it if anyone could give me any pointers to speed this code up.

    Thanks in advance

    Regards

    Jim
    Attached Files Attached Files
    Last edited by JimmyA; 11-15-2011 at 12:09 PM.

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