Hello,
I need to figure out how to fill blank cells in column b with the data that is in the cell to the immediate left. I believe this would be something like "if b2 is is blank, then copy a2 to b2." The code would need to check each row, to the last row with data (which varies week to week). This will be inserted into a larger macro that already has a public function that returns last row number for other parts of the larger macro. So I'd like to be able to use that to help with getting to the last row, or does that make sense? Here is the code for the public function just in case it does:
[vba]Public Function LastRow() As Long
'
' Function to return last row number with content in active sheet
Dim lr As Long
lr = ActiveSheet.UsedRange.Rows.Count
LastRow = lr
End Function
[/vba]
Sample attached.
Thanks in advance for your help.
Whh3