Calculation on big files + progress

djbubu99

New Member
Joined
Mar 30, 2011
Messages
15
Hi,

I have a summary file wich basicly is a file that has links to 3 other files: A, B, C. I need to gather all my data in this summary and then used that data to create a pivot table.

In the summary file a have just a first row with table header and a second row with my formulas (most of them beeing vlookup formulas from files A,B,C).
I have a vba code that opens does files, finds the used range of file A and autofills the formula to the necessary row number, then updates the links and finally closes files A,B,C.

This can be a dailly or a monthly report based on the data that I use in A,B,C.
When I use that macro for a daily report there is no problem. It takes about 5 minutes, but it works.

I tryed using it for a monthly report, i waited about 4 hours till I decided to end that task. I don't know if this works.

My summary file has 25 columns and about 250.000 rows for the monthly report. The problem is that i don't know if it works (i just get a white screen in excel & i don't have a progress bar or something to show me what is the status on my workbook)

This is all done on an Intel Core 2 Duo, 3gb Ram, Windows Xp, Office 2007.


Is there an other aproach to this?
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Try posting your code.

You can display progress using the status bar (or other methods) but I would guess that the user would be asleep after 4 hours ;)
 
Upvote 0
If you're working down a spreadsheet, row by row, this will count the total rows and the current row so you'll know it's doing something...

I'm just copying this code from some of my own, so you'll have to check/set any variables/functions yourself and do some error trapping outside this little procedure in case of failure. :nya:

Code:
Application.ScreenUpdating = False ' Make it process faster
For i = 2 To lastRow ' Start on Row 2' Iterate through rows
    Set cellPointer = Worksheets(sWS).Cells(i, iRow) ' Get value of cell
    DoEvents
 
Your_Code_Here
 
'Show what's going on
sSuccess = FormatPercent(i / lastRow, 1)
Application.StatusBar = "Adding Links. Working on row " & i & " of " & lastRow & "  (" & sSuccess & ")"
   DoEvents
Next i ' Next row
Application.ScreenUpdating = True
Application.StatusBar = False
Hope this helps
 
Upvote 0

Forum statistics

Threads
1,224,517
Messages
6,179,234
Members
452,898
Latest member
Capolavoro009

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top