SV18
Board Regular
- Joined
- Sep 1, 2008
- Messages
- 157
Hello all,
I'm working on some address data, currently the addresses have blanks in some of the cells which end up splitting the address details.
I've written the following to remove the blanks, it isn't however working as sometimes there is more than one blank. So it doesn't line up as it should
For Each C in Range("b2:f6")
Has anyone got any ideas of how I can do this?
<TBODY>
</TBODY>
I'm working on some address data, currently the addresses have blanks in some of the cells which end up splitting the address details.
I've written the following to remove the blanks, it isn't however working as sometimes there is more than one blank. So it doesn't line up as it should
For Each C in Range("b2:f6")
If C.value = "" then
C.Delete shift:=xlToLeft
End If
Next CHas anyone got any ideas of how I can do this?
EEID | Address1 | Address2 | Address3 | Address4 | Address5 |
8002 | 1 Road | Street | Town | Town | |
8003 | 2 Road | Street | Town | Town | |
8004 | 3 Road | Street | Town |
<TBODY>
</TBODY>