Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formatting Text in one cell vertically - #2

Using answer below for Cell A1.
How can I alter the formula for as many cells as I like, say 100 cells
vertically?

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$1" Then

Target.Value = Replace(Target.Value, " ", Chr(10))
End If
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formatting Text in one cell vertically - #2

Here is an example for some cells in column A:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("A1:A100")) Is Nothing Then
Else
Target.Value = Replace(Target.Value, " ", Chr(10))
End If
End Sub

--
Gary''s Student - gsnu200761


"EMZAM" wrote:

Using answer below for Cell A1.
How can I alter the formula for as many cells as I like, say 100 cells
vertically?

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$1" Then

Target.Value = Replace(Target.Value, " ", Chr(10))
End If
End Sub

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Formatting Text in one cell vertically - #2

Thanks gsnu200761.
Formula works great, meaning It now does the vertical formatting for me,
though I have to mouse click over each of the cells for excel to change the
blocks of text from running accros the cell to downwards.
Only problem is that I keep getting the same error message:-
run-type error '13'
type mismatch

Is there something wrong here?

"Gary''s Student" wrote:

Here is an example for some cells in column A:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Intersect(Target, Range("A1:A100")) Is Nothing Then
Else
Target.Value = Replace(Target.Value, " ", Chr(10))
End If
End Sub

--
Gary''s Student - gsnu200761


"EMZAM" wrote:

Using answer below for Cell A1.
How can I alter the formula for as many cells as I like, say 100 cells
vertically?

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$A$1" Then

Target.Value = Replace(Target.Value, " ", Chr(10))
End If
End Sub

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
Formatting Text in one cell Vertically EMZAM Excel Discussion (Misc queries) 3 December 11th 07 12:08 PM
Text in cells is cut off vertically when i Print MMAS Excel Discussion (Misc queries) 0 November 5th 07 10:55 PM
How break column formatting to vary cell widths vertically? ThxAMillion! Excel Worksheet Functions 1 August 17th 06 08:37 PM
How do i rotate the text TO FIT THE Paper vertically? precious_starr New Users to Excel 0 January 19th 06 03:16 PM
how to type a text vertically in a excell cell bhar Excel Discussion (Misc queries) 2 August 4th 05 11:15 PM


All times are GMT +1. The time now is 06:30 AM.

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"