I have a file with a few functions. One of them divides text to columns in selected range:
Sub txt2clmns()
Dim rng As Range
Set rng = [i5]
Set rng = Range(rng, Cells(Rows.Count, rng.Column).End(xlUp))
rng.TextToColumns _
Destination:=Range("J5"), _
DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, _
Tab:=True, _
Semicolon:=True, _
Comma:=False, _
Space:=False, _
Other:=False
rng.TextToColumns _
Destination:=rng, _
DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, _
Tab:=True, _
Semicolon:=False, _
Comma:=False, _
Space:=False, _
Other:=False
End Sub
Is there a simpler way to refresh the settings for text-to-column function without applying it second time with standard parameters (only tab check box is checked)?
Because in case I call it only once, Excel automatically divide all strings with semicolon when I paste them directly in the formula tab.
Thank you for any help.