blueangel2323
New Member
- Joined
- Jul 12, 2011
- Messages
- 15
Hi everyone, I have a big problem here and it would be greatly appreciated if anyone could help me.
Let's say that I have the following code:
and I'm using commas as delimiters. I run the script on the following data:
The results would look something like this:
The first line (row 2) is fine, that's exactly what TextToColumns is supposed to do.
The problem is with the second line (row 3). The cells after A3 were replaced by blank cells, even though I want to keep "Hello" and "World"
Is there a way to tell the script not to replace cells that are already occupied, or better yet, to skip cells (in column A) that have no delimiter?
Let's say that I have the following code:
Code:
Columns("A:A").TextToColumns Destination:=Range("A1")
Code:
A2: Gobble,Turkey,Dinner B2: (blank) C2: (blank)
A3: Gobble B3: Hello C3: Everybody
The results would look something like this:
Code:
A2: Gobble B2: Turkey C2: Dinner
A3: Gobble B3: (blank) C3: (blank)
The first line (row 2) is fine, that's exactly what TextToColumns is supposed to do.
The problem is with the second line (row 3). The cells after A3 were replaced by blank cells, even though I want to keep "Hello" and "World"
Is there a way to tell the script not to replace cells that are already occupied, or better yet, to skip cells (in column A) that have no delimiter?