View Single Post
  #10   Report Post  
Posted to microsoft.public.excel.programming
tkstock[_27_] tkstock[_27_] is offline
external usenet poster
 
Posts: 1
Default setting up a hopefiully simple macro


You will need a macro for that.

You could have some code load the strings into a text array:

Code:
--------------------

Dim myArray() as String
Dim ind as Integer
ind = 1
While Activecell < ""
Redim Preserve myArray(ind)
t = Activecell.Value
for x = 1 to Len(t)
if Mid$(t,x,1) = "*" And myArray(ind) < "" Then
ind = ind + 1 ' only increments on first asterisk
elseif Mid$(t,x,1) < "*" Then
myArray(ind) = myArray(ind) & Mid$(t,x,1)
end if
next x
Selection.Offset(1,0).Select
Wend
--------------------

Then dump those array values where you want them...

HTH


--
tkstock


------------------------------------------------------------------------
tkstock's Profile: http://www.excelforum.com/member.php...o&userid=14443
View this thread: http://www.excelforum.com/showthread...hreadid=379764