View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Sheryl[_2_] Sheryl[_2_] is offline
external usenet poster
 
Posts: 11
Default Text to Columns Code

I need to write code for Text to Columns for the cells I select and they
would always be in the same column, but could be any column. Each cell
contains one or more underscores, but I need it split up at the second
underscore. I don't have a clue on how to write this, can you help?
Example starting with would be:
First-Set-Of-Words_SecondSet_ThirdSet
I need:
First Column Second Column
First-Set-Of-Words_SecondSet ThirdSet
I need this split between the second and third set dropping the second
underscore too and to remain as text format.