vba - excel macro column auto-fill -
I have a spreadsheet that is helping to clean and use macros. I have temperature data in my column 'C'. I, like all data, some are missing.
CC 1 37 1 37 2 35 2 35 3 - How would I write a macro which will fill the missing location with previous data? For example: ------ & gt; 3 35 4 37 4 37 5 36 5 36 The location is filled with data of C3C2.
Thank you for your help.
Give it a try:
sub fixes (C) slow As long as N, I have long N = Room (rows.Count, "C"). End (XLEEP). For RAD I = 2 to N if cell (i, "c") = "" then cells (i, "c") = cell (i - 1, "c") end if next I end Sub
Comments
Post a Comment