Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 159
Default insert space in cells

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 621
Default insert space in cells

=" " & cellref in a helper cell

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

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


Gord

On Fri, 8 Jun 2012 18:45:01 -0700 (PDT), robzrob
wrote:

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert a space in all blank cells of the first column andreashermle Excel Programming 4 December 11th 09 03:09 PM
Merge contents of cells and insert line space Craig Excel Worksheet Functions 3 June 9th 07 01:15 AM
Insert Space sabegirl Excel Discussion (Misc queries) 2 May 28th 06 04:44 AM
Insert Tab Space dok112[_108_] Excel Programming 2 March 29th 06 01:36 AM
How can I insert a space before the last character in a range of cells Jeff[_25_] Excel Programming 8 November 13th 03 07:45 PM


All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"