I'm just trying to set the references for the last blank cells in two columns and then fill down with data from:-
Range("F2").Select
ActiveCell.FormulaR1C1 = "z"
and
Range("G2").Select
ActiveCell.FormulaR1C1 = "Stockcheck"
by using the following:-
Selection.End(xlDown).Select
Column_Number = ActiveCell.Column + 1
Row_Number = ActiveCell.Row
Set SourceRange = Range("F2:G2")
Set fillRange = Range("F2:Column_Number & Row_Number")
SourceRange.AutoFill Destination:=fillRange
It's probably EXTREMELY simple - but so am I, so any help would be appreciated. Also this worksheet is from a .csv file downloaded from our mainframe so the actual cells aren't empty, although they appear to be blank, so the "Selection.End(xlDown).Select" statement doesn't actually find the last blank cell (unless I manually 'Clear Contents'). So should I just be running a loop down to find the last empty cell - although
Do Until Not IsEmpty(ActiveCell)
doesn't work either?
Range("F2").Select
ActiveCell.FormulaR1C1 = "z"
and
Range("G2").Select
ActiveCell.FormulaR1C1 = "Stockcheck"
by using the following:-
Selection.End(xlDown).Select
Column_Number = ActiveCell.Column + 1
Row_Number = ActiveCell.Row
Set SourceRange = Range("F2:G2")
Set fillRange = Range("F2:Column_Number & Row_Number")
SourceRange.AutoFill Destination:=fillRange
It's probably EXTREMELY simple - but so am I, so any help would be appreciated. Also this worksheet is from a .csv file downloaded from our mainframe so the actual cells aren't empty, although they appear to be blank, so the "Selection.End(xlDown).Select" statement doesn't actually find the last blank cell (unless I manually 'Clear Contents'). So should I just be running a loop down to find the last empty cell - although
Do Until Not IsEmpty(ActiveCell)
doesn't work either?