Quantcast
Channel: Excel Help Forum - Excel Programming / VBA / Macros
Viewing all articles
Browse latest Browse all 50061

How to replace an empty cell with the data of the one above

$
0
0
Hello,
I'm a newbee on the forum and a medium excel user without VBA programming knowledge.
Currently I am stuck with the folowing challenge, is there anyone who can help?

Challenge:
I'm working on a file (datadump) which looks like this.

Knipsel.PNG

Colomn B contains clientnumbers. I need to replace the empty cells with the data (clientnumber) of the one above.
Manualy I copy the cell above the empty one and paste its content in the empty ones untill I reach another one containing a clientnumber.

When I recorded this procedure (I used the searchwindow, searched for an empty cell, clicked the one above and pasted as mentioned above).
The recording doesn't give a code I can use for whole my file. The code looks like this.

Knipsel2.PNG

Is there anyone who can help me out with a code that works for whole my file?

Thanks in advance!

Lenny

Viewing all articles
Browse latest Browse all 50061

Trending Articles