Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
GBF GBF is offline
external usenet poster
 
Posts: 1
Default Embedding spaces in an Excel file ...

I want to embed 2 spaces at the end of a cell. The cells will be strung
together in a sentence & I want to separate each cell with 2 spaces. Any
ideas on how to do this? Thanks in advance - GBF
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 54
Default Embedding spaces in an Excel file ...

Another suggestion would be to use the (Concatenate) formula. This formula
adds text strings together. Ex: Concatenate(A1," ",A2).
--
CCO


"Gary''s Student" wrote:

Without VBA:

lets say we have text in cell A1. In an un-used (helper) cell enter:
=A1 & " "
copy the helper cell and paste/special as value back onto A1. This will
leave A1 with the original contents and two spaces added to the end. This
can be very tedious if done cell-by-cell.

With VBA, enter this small macro:

Sub paddum()
For Each r In Selection
r.Value = r.Value & " "
Next
End Sub

Select the cells you want to pad and run the macro. If you are unfamiliar
with VBA, See:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Gary's Student
gsnu200702


"GBF" wrote:

I want to embed 2 spaces at the end of a cell. The cells will be strung
together in a sentence & I want to separate each cell with 2 spaces. Any
ideas on how to do this? Thanks in advance - GBF

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Embedding spaces in an Excel file ...

Without VBA:

lets say we have text in cell A1. In an un-used (helper) cell enter:
=A1 & " "
copy the helper cell and paste/special as value back onto A1. This will
leave A1 with the original contents and two spaces added to the end. This
can be very tedious if done cell-by-cell.

With VBA, enter this small macro:

Sub paddum()
For Each r In Selection
r.Value = r.Value & " "
Next
End Sub

Select the cells you want to pad and run the macro. If you are unfamiliar
with VBA, See:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


--
Gary's Student
gsnu200702


"GBF" wrote:

I want to embed 2 spaces at the end of a cell. The cells will be strung
together in a sentence & I want to separate each cell with 2 spaces. Any
ideas on how to do this? Thanks in advance - GBF

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
need to export row as csv file with column e plus .bom as file name rod Excel Discussion (Misc queries) 5 November 2nd 06 03:38 AM
importing a particular excel worksheet into another excel file dinouk Excel Worksheet Functions 0 August 10th 06 02:03 PM
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER MEGTOM New Users to Excel 5 October 27th 05 03:06 AM
Excel startup switches Randy Excel Discussion (Misc queries) 9 June 14th 05 10:27 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM


All times are GMT +1. The time now is 01:38 PM.

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

About Us

"It's about Microsoft Excel"