G
Great Blue
Hi-
I am trying to record a simple macro that will:
- Run the "Text to Column" command on the selected cell
- Split the contents of the cell based on the space delimiter
- Deliver the results to the selected cell and subsequent cells to the
right.
When I run the recorded macro, it delivers the results to the cells
where it was originally recorded. I have pasted the text of the macro
below:
Sub Split_Space()
'
' Split_Space Macro
' Macro recorded 09/08/2003 by GBHE
'
'
Selection.TextToColumns Destination:=Range("B170"),
DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True,
Tab:=False, _
Semicolon:=False, Comma:=False, Space:=True, Other:=False,
FieldInfo _
:=Array(Array(1, 1), Array(2, 1))
End Sub
I am trying to record a simple macro that will:
- Run the "Text to Column" command on the selected cell
- Split the contents of the cell based on the space delimiter
- Deliver the results to the selected cell and subsequent cells to the
right.
When I run the recorded macro, it delivers the results to the cells
where it was originally recorded. I have pasted the text of the macro
below:
Sub Split_Space()
'
' Split_Space Macro
' Macro recorded 09/08/2003 by GBHE
'
'
Selection.TextToColumns Destination:=Range("B170"),
DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True,
Tab:=False, _
Semicolon:=False, Comma:=False, Space:=True, Other:=False,
FieldInfo _
:=Array(Array(1, 1), Array(2, 1))
End Sub