LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default carraige return within a cell & capitalization

In cells A1:A30 I've got my original values, which are text sentences, and
anywhere between 40 and 70 characters long. Cells B1:B30 I've put a varation
of Sub Shuffle30Values() found elsewhere on these boards to create a random
order of lookup values. Cells C1:C5 list punctuation/conjunctive words; cell
D1 concatenates and merges the first five values of B and C to form a
"proper" randomly generated sentence with punctuation (at the moment I've got
the output set to LOWER).

The first thing I need to do is get the output of this cell to be in
"proper" English, so that the first letter, and any letter appearing after a
full stop, are capitalized.

The second thing I need to try and do is insert a carraige return within the
cell after 45-50 characters, but so that it isn't inserted in the middle of a
word.

Current output:

line 1 has fifty characters, whilst line 2 has fifty characters and line 3
has fifty characters. line 4 has fifty characters but line five has fifty
characters.

Desired output that can be copied over to word:

Line 1 has fifty characters, whilst
line 2 has fifty characters and
line 3 has fifty characters.
Line 4 has fifty characters but
line 5 has fifty characters.

Any suggestions on how to modify the output?
 
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
Save As csv Carraige Return issue WaterBug Excel Worksheet Functions 3 May 6th 10 04:09 PM
Capitalization AMezera Excel Discussion (Misc queries) 7 June 24th 09 11:25 PM
Capitalization of first word in a cell Dave Excel Discussion (Misc queries) 5 April 25th 06 08:06 PM
Action A Carraige Return To A Text File Dave[_17_] Excel Programming 0 September 18th 03 09:05 PM
Action A Carraige Return To A Text File Dave[_17_] Excel Programming 0 September 18th 03 07:12 PM


All times are GMT +1. The time now is 03:23 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"