I am a Novice. I am unable to use a variables in cell addresses successfully. Here is my fake code. Thanks for any help you provide.
Sub Macro1()
Dim Rx As Long 'for Row
Dim Cx As Long 'for Col
Dim iRow As Long 'for last row with data
Dim x As Integer
Set ws = Worksheets("Ebay Inventory")
'for columns B, D, I, K, L in last row with data
'copy down formulas in first empty row
'find first empty row in database and assign it to var iRow
iRow = ws.Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).iRow + 1
For x = 1 To 5
If x = 1 Then Cx = 2 'Column #
If x = 2 Then Cx = 4
If x = 3 Then Cx = 9
If x = 4 Then Cx = 11
If x = 5 Then Cx = 12
Cells(iRow + 1, Cx).Copy Cells(iRow + 1, Cx)
Next x
End
Sub Macro1()
Dim Rx As Long 'for Row
Dim Cx As Long 'for Col
Dim iRow As Long 'for last row with data
Dim x As Integer
Set ws = Worksheets("Ebay Inventory")
'for columns B, D, I, K, L in last row with data
'copy down formulas in first empty row
'find first empty row in database and assign it to var iRow
iRow = ws.Cells.Find(What:="*", SearchOrder:=xlRows, _
SearchDirection:=xlPrevious, LookIn:=xlValues).iRow + 1
For x = 1 To 5
If x = 1 Then Cx = 2 'Column #
If x = 2 Then Cx = 4
If x = 3 Then Cx = 9
If x = 4 Then Cx = 11
If x = 5 Then Cx = 12
Cells(iRow + 1, Cx).Copy Cells(iRow + 1, Cx)
Next x
End