thanks everyone...it almost works now!
one hiccup...
I keep the cells in columns A & B on "CashTransferRecord usually blank so
the macro doesn't add a new record each time. can this be fixed so it looks
to column C to check if cells are empty or not in order to add record/data to
the bottom of sheet?
Thanks so much! - Brice
> Actually you'd have to do this because of your requirement to have the data
> start on row 2 if you're just starting out. And the offset # was wrong, sb 1
[quoted text clipped - 12 lines]
> End If
> End Sub
Mike H. - 20 Dec 2007 10:26 GMT
Alll I did was change the 2,1 to 3,1 on the 2nd line of the sub....
Sub Doit()
Sheets("CashTransferRecord").Select
If Cells(3, 1).Value = Empty Then
Worksheets("Sheet1").Range("$A$2:$P$3").Copy
Worksheets("CashTransferRecord").Range("a2").PasteSpecial
(xlPasteValues)
Else
Worksheets("Sheet1").Range("$A$2:$P$3").Copy
Worksheets("CashTransferRecord").Range("A65000").End(xlUp).Offset(1,0).Cells.PasteSpecial (xlPasteValues)
End If
End Sub
> thanks everyone...it almost works now!
>
[quoted text clipped - 23 lines]
> > End If
> > End Sub
Mike H. - 20 Dec 2007 10:28 GMT
Oops. You wanted column C-3. So it is 2,3 as shown here....
Sub Doit()
Sheets("CashTransferRecord").Select
If Cells(2, 3).Value = Empty Then
Worksheets("Sheet1").Range("$A$2:$P$3").Copy
Worksheets("CashTransferRecord").Range("a2").PasteSpecial (xlPasteValues)
Else
Worksheets("Sheet1").Range("$A$2:$P$3").Copy
Worksheets("CashTransferRecord").Range("A65000").End(xlUp).Offset(1,0).Cells.PasteSpecial (xlPasteValues)
End If
End Sub
> thanks everyone...it almost works now!
>
[quoted text clipped - 23 lines]
> > End If
> > End Sub
Mike H. - 20 Dec 2007 10:29 GMT
Oops Again, You'd also have to change the A65000 to C65000. But that SHOULD
do it. Sorry for being scatterbrained....
> thanks everyone...it almost works now!
>
[quoted text clipped - 23 lines]
> > End If
> > End Sub