Confuzzled_1
New Member
- Joined
- Jan 21, 2010
- Messages
- 46
Hi all,
I have the following code that works fine on, let's say, column B. because it has data in it. But as soon as it gets to column C, the column can sometimes be empty but sometimes have data. If it IS empty, I get the above error.
Help...I basically need it to do what I want it to when there is data and then if there isn't, for it to just go onto my next piece of code.
Columns("C:C").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("C:C"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 4), TrailingMinusNumbers:=True
Cheers
I have the following code that works fine on, let's say, column B. because it has data in it. But as soon as it gets to column C, the column can sometimes be empty but sometimes have data. If it IS empty, I get the above error.
Help...I basically need it to do what I want it to when there is data and then if there isn't, for it to just go onto my next piece of code.
Columns("C:C").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("C:C"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 4), TrailingMinusNumbers:=True
Cheers