Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've got a For loop cycling through all the selected cells and
manually calculating them. However, it always calculates them by row and it calculates much faster if going down the way but I don't want to select each column and run my macro individually. Any ideas for making the for loop move to the next cell down as it's looping through the selected cells? Sub CalcRange() Dim nocells, currcell As Double Dim Cell As Object ActiveSheet.Activate nocells = Selection.Cells.count currcell = 0 For Each Cell In Selection currcell = currcell + 1 Application.StatusBar = Int(currcell * 100 / nocells) & "% complete" Cell.Calculate Next Cell Application.StatusBar = False End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel VBA Class Objects - Parent & Successor Objects | Excel Programming | |||
Looping Thru Objects in UserForms | Excel Programming | |||
Unable to remove Sheet objects in the Microsoft Excel Objects | Excel Programming | |||
looping and objects | Excel Programming | |||
Direction for looping through a Selection. | Excel Programming |