insert space in cells

R

robzrob

Hi

Simple one, I think, but I can't figure it out.

I want to put a space in front of the contents of each cell (ie each cell that's got something in it) in a particular worksheet.
 
G

Gord Dibben

=" " & cellref in a helper cell

In place.................

Sub add_space()
For Each cell In Selection
cell.Value = " " & cell.Value
Next
End Sub


Gord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top