Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi all,
In a for next loop I want to insert at a certain position (below it is position 15) in a cell chr(10) (is that called a line feed?) to put the rest of the content on a new line in the cell. I tried myCell.Characters(15) = vbLf but that will not work. What should the code be? Thanks in advance for your advice. Jack Sons The Netherlands |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Mon, 10 May 2010 12:03:40 +0200, "Jack Sons" wrote:
Hi all, In a for next loop I want to insert at a certain position (below it is position 15) in a cell chr(10) (is that called a line feed?) to put the rest of the content on a new line in the cell. I tried myCell.Characters(15) = vbLf but that will not work. What should the code be? Thanks in advance for your advice. Jack Sons The Netherlands Left(myCell.Value, 15) & vbLf & Mid(myCell.Value, 15 + 1) You may or may not want to test to see if Len(myCell) 15 --ron |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Ron. It's a certaincy that Len(myCell) 15.
Jack. "Ron Rosenfeld" schreef in bericht ... On Mon, 10 May 2010 12:03:40 +0200, "Jack Sons" wrote: Hi all, In a for next loop I want to insert at a certain position (below it is position 15) in a cell chr(10) (is that called a line feed?) to put the rest of the content on a new line in the cell. I tried myCell.Characters(15) = vbLf but that will not work. What should the code be? Thanks in advance for your advice. Jack Sons The Netherlands Left(myCell.Value, 15) & vbLf & Mid(myCell.Value, 15 + 1) You may or may not want to test to see if Len(myCell) 15 --ron |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
On Mon, 10 May 2010 13:49:53 +0200, "Jack Sons" wrote:
Thanks Ron. It's a certaincy that Len(myCell) 15. Jack. Glad to help. --ron |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Use the "replace" function
-- If this helps, please click "Yes" <<<<<<<<<<< "Jack Sons" wrote: Hi all, In a for next loop I want to insert at a certain position (below it is position 15) in a cell chr(10) (is that called a line feed?) to put the rest of the content on a new line in the cell. I tried myCell.Characters(15) = vbLf but that will not work. What should the code be? Thanks in advance for your advice. Jack Sons The Netherlands . |
#6
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks Rick,
I'm afraid your suggestion will not work because it is unknown what character we have on position 15. We know only its position. Jack. "BSc Chem Eng Rick" schreef in bericht ... Use the "replace" function -- If this helps, please click "Yes" <<<<<<<<<<< "Jack Sons" wrote: Hi all, In a for next loop I want to insert at a certain position (below it is position 15) in a cell chr(10) (is that called a line feed?) to put the rest of the content on a new line in the cell. I tried myCell.Characters(15) = vbLf but that will not work. What should the code be? Thanks in advance for your advice. Jack Sons The Netherlands . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Inserting a zero | Excel Discussion (Misc queries) | |||
inserting zero | Excel Worksheet Functions | |||
Inserting row | Excel Discussion (Misc queries) | |||
Inserting a row | Excel Worksheet Functions | |||
Inserting zero | Excel Discussion (Misc queries) |