VBA format de cellules en Général

Je voudrais formater un fichier excel en "Général", mais il ne fonctionne pas pour toutes les cellules (certains sont personnalisés, pourcentage...).
voici mon code :

With ActiveSheet.Range("A1").Resize(LineIndex, 1)
    .Value = WorksheetFunction.Transpose(strLine)
    .NumberFormat = "General"
    'DEFINE THE OPERATION FULLY!!!!
    .TextToColumns Destination:=.Cells(1), DataType:=xlDelimited, _
                   TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, _
                   Tab:=False, Semicolon:=False, Comma:=False, Space:=False, _
                   Other:=True, OtherChar:="|"

aider s'il vous plaît.

OriginalL'auteur BKChedlia | 2016-06-19