Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Dave,
I'd add one more line: So would I! Thank you! --- Regards, Norman "Dave Peterson" wrote in message ... I'd add one more line: Set rng = nothing '<-- added On Error Resume Next Set rng = SH.Cells.SpecialCells(xlCellTypeFormulas) On Error GoTo 0 If there are no formulas on a worksheet, then rng won't change. And depending on what's going to happen to those cells with formulas, it could be a problem. And to the OP, Norman showed how to get a range with all the formulas. If you're doing something like changing the fill color, you can do it all at once--you don't need to loop through those cells. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
loop through a column on a workbook copying data on each row to another workbook, then copy data back to the original workbook | Excel Programming | |||
copy,paste and loop through workbook | Excel Discussion (Misc queries) | |||
Loop through all sheets in workbook | Excel Programming | |||
Workbook Loop Headache | Excel Programming | |||
Code to Loop thru a Workbook | Excel Programming |