SheetX.UsedRange.Cells.SpecialCells(xlCellTypeFormula).Replace _
What:="CDSData1!", Replacement:="CDSData2!", LookAt:=xlPart
set rBlanks = Activesheet.UsedRange.SpecialCells(xlCellTypeBlanks)
if not rBlanks is nothing then
rBlanks.Formula = "=" & rBlanks(1).Offset(-1).Address
rBlanks.Value = rBlanks.Value
end if