Do you really need code?
- Select the column with the blanks.
- Goto Edit>Goto...Special and select blanks.
- Goto the formula bar, enter =A1 (or whatever the first cell with data is) and then press CTRL+ENTER.
- Select the column, copy and paste special values.
Bookmarks