Hi,
I have 15 worksheets with 1,000 rows of data on each worksheet. Every row has 5-6 columns. I'm using a third party plug-in to automatically update the 1,000 rows - this takes roughly 3.5 - 4.0 mins. Once the newer data is available, the older data is lost and is replaced by the newer data. What I'm therefore looking to do, is run a VBA code which will do the following:-
1. Copy 1,000 rows of data from all 15 worksheets and paste the data as values in another workbook (which will also have 15 worksheets). With every update, I want the new 1,000 rows of data to be stacked below the previously pasted 1,000 rows (to ensure that no data is lost)
2. Since the time taken to update the 1,000 rows is roughly 3.5 mins, I want to update the data every 3 mins - to be
doubly sure not to lose any data due to the replacing factor
3. This exercise may/ will result in some duplicate rows. I don't mind manually eliminating these at the end of the exercise.
4. The code should run every 3 mins, but only between 9:15 am to 3:30 pm (system time)
Since the volume of data processed is large, I understand that this process will take a lot of CPU resources. Any tips to keep the process thin and lean will also be helpful.
I hope my explanation above is easy to understand. If not, I'll be happy to provide an illustration / more detailed description.
Thanks,
Kavan
P.S.: I use Excel 2013 on Windows 8.1. I have no prior VBA experience and this is my first attempt to include VBA code in a spreadsheet.
I have 15 worksheets with 1,000 rows of data on each worksheet. Every row has 5-6 columns. I'm using a third party plug-in to automatically update the 1,000 rows - this takes roughly 3.5 - 4.0 mins. Once the newer data is available, the older data is lost and is replaced by the newer data. What I'm therefore looking to do, is run a VBA code which will do the following:-
1. Copy 1,000 rows of data from all 15 worksheets and paste the data as values in another workbook (which will also have 15 worksheets). With every update, I want the new 1,000 rows of data to be stacked below the previously pasted 1,000 rows (to ensure that no data is lost)
2. Since the time taken to update the 1,000 rows is roughly 3.5 mins, I want to update the data every 3 mins - to be
doubly sure not to lose any data due to the replacing factor
3. This exercise may/ will result in some duplicate rows. I don't mind manually eliminating these at the end of the exercise.
4. The code should run every 3 mins, but only between 9:15 am to 3:30 pm (system time)
Since the volume of data processed is large, I understand that this process will take a lot of CPU resources. Any tips to keep the process thin and lean will also be helpful.
I hope my explanation above is easy to understand. If not, I'll be happy to provide an illustration / more detailed description.
Thanks,
Kavan
P.S.: I use Excel 2013 on Windows 8.1. I have no prior VBA experience and this is my first attempt to include VBA code in a spreadsheet.