I am trying to copy number down column A:A but when I see the word subtotal in column b:b do not copy in the A:A cell next to it but still copy down. This is the code I am trying to use. There was 3 codes on this page they will all work I just need that line of code add here is the link
http://www.contextures.com/xlDataEntry02.html#FillProg
http://www.contextures.com/xlDataEntry02.html#FillProg
Code:
Sub FillColBlanks_Offset() 'by Rick Rothstein 2009-10-24 'fill blank cells in column with value above 'http://www.contextures.com/xlDataEntry02.html Dim Area As Range, LastRow As Long On Error Resume Next LastRow = Cells.Find(What:="*", SearchOrder:=xlRows, _ SearchDirection:=xlPrevious, _ LookIn:=xlFormulas).Row For Each Area In ActiveCell.EntireColumn(1).Resize(LastRow). _ SpecialCells(xlCellTypeBlanks).Areas Area.Value = Area(1).Offset(-1).Value Next End Sub</pre>