Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

Can anybody help me with Excel TextToColumns using VB.Net

I have following code, But there is nothing change in my required column

SQL
With wks.Range("AF:AF")
                .TextToColumns(Destination:=wks.Range("AF1"), DataType:=XlTextParsingType.xlFixedWidth, FieldInfo:=XlColumnDataType.xlGeneralFormat)
           .NumberFormat = "dd-mm-yyyy"
       End With


Please help.
Posted
Comments
RaviGupta7986 17-Jan-12 14:40pm    
please elaborate your problem(requirement)?
Jαved 18-Jan-12 2:57am    
Explanation needed. what you want to do exactly?
Pravinkarne.31 19-Jan-12 4:50am    
I want to use "TextToColumn" Option (Which is in Excel-Data>TextToColumn) by using VB.Net
Can you help me?
Maciej Los 6-Feb-12 16:21pm    
The code is correct. What you mean: "Nothing change in my required column"? Text does not split itself into columns or date format isn't changing?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900