hi all,
have a runtime error "1004", no data selected to parse
how do I fix this, probably something to do with the code, since if its an empty selection, there is no data to work with
thanks vm
here is the code:
Sub Macro5()
Dim ActSheet As Worksheet
Dim SelRange As Range
Set ActSheet = ActiveSheet
Set SelRange = Selection
SelRange.Select
Selection.TextToColumns Destination:=SelRange, DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=False, Space:=False, Other:=True, OtherChar _
:="/", FieldInfo:=Array(1, 5), TrailingMinusNumbers:=True
Selection.NumberFormat = "dd/mm/yy"
End Sub
Bookmarks