tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,913
- Office Version
- 365
- 2019
- Platform
- Windows
The problem I have is exactly as described in this article:
What seems to be a date is actually text, so correct it, the suggestion was to use the Text To Columns function.
It worked manually, so I recorded my steps to see the code:
However, when I ran the code, the heading moved up from row 7 to 6.
Can someone please tell me what's wrong.
Thanks
<strike>
</strike>
Rich (BB code):
https://www.excelforum.com/excel-general/702292-alignment-of-dates.html
What seems to be a date is actually text, so correct it, the suggestion was to use the Text To Columns function.
It worked manually, so I recorded my steps to see the code:
Rich (BB code):
Columns("P:P").Select
Selection.TextToColumns Destination:=Range("P1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=False, Other:=False, FieldInfo _
:=Array(1, 1), TrailingMinusNumbers:=True
However, when I ran the code, the heading moved up from row 7 to 6.
Can someone please tell me what's wrong.
Thanks
<strike>
</strike>
Last edited: