Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Adelisa Fischer   on Feb 14 In MS Office Category.

  
Question Answered By: Jack Williams   on Feb 14

In this example you used a fixed mechanisme to split the info. In this
case it's important to find where the separator is located. In a
previous answer i mentioned a function which can be used when you
perform this in a worksheet. In a macro this is converted to a search
function.
I think it should be something like

move value to string
loop
start looking for separator
start=1
found .. move value from start=1 to pos found to tempvalue
start looking for separator
start=posfound + 1
found .. move value from start to pos found to tempvalue-2
etc
until end of string
write out values to columns  and move on to the next row

If I have any time left I'll see if I can give provide a working sample

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on New to VBA and trying to separate data Or get search suggestion and latest updates.


Tagged: