Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi again, I have already posted help on this but I can't get it to work. I
would like try again. Thanks to Tom Ogilvy I can convert a Range of cells (J9:J520) to a single cell string. (See code below) Sub RangeToArray() 'Tom Ogilvy creator Dim sStr As String Dim cell As Range sStr = "" For Each cell In Range("J9:J520") sStr = sStr & cell.Value & ", " Next sStr = Left(sStr, Len(sStr) - 2) ActiveCell.Value = sStr End Sub I now need to convert this single cell string back to the cell range (J9:J520). The converted single cell string will have 512 values and may consist of 2, 3 or 4 digit values. Example: 598, 593, 1002, 598, 565, 98, etc... Is this possible? How can it be done? Thanks, Kevin Graham |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Duplication of string values within a range | Excel Worksheet Functions | |||
Return a String in a 7 Row Range Q | Excel Worksheet Functions | |||
convert a string to range? | Excel Worksheet Functions | |||
Convert String of 512 numbers to a range | Excel Programming | |||
Converting a range to string | Excel Programming |