Hi,
I am trying to use Text to column in VBA but when i run through a macro it doesn't seem to perform the function. I am using this so dates are in the right format for conditional formatting in other cells. below is some code. the amount of rows in the column can vary so i have used
Range(Selection, Selection.End(xlDown)).Select .....as per below. any help appreciated. even when i record this i get the same thing and it works when not run through the macro.
Range("X25").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("X25"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1), TrailingMinusNumbers:=True
I am trying to use Text to column in VBA but when i run through a macro it doesn't seem to perform the function. I am using this so dates are in the right format for conditional formatting in other cells. below is some code. the amount of rows in the column can vary so i have used
Range(Selection, Selection.End(xlDown)).Select .....as per below. any help appreciated. even when i record this i get the same thing and it works when not run through the macro.
Range("X25").Select
Range(Selection, Selection.End(xlDown)).Select
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("X25"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1), TrailingMinusNumbers:=True