Hi all, I hope my question is a simple one. I need to run the following code on many cells in my worksheet.
What I would like to do is click in a cell - run the macro, click in the next cell - run the macro etc etc etc. until all of the cells I need to effect are done.
When I recorded the macro, I hard coded the cell reference in it (F6).
Is there something I can change in the code that will tell it to run in the active cell?
Thank you all as always for your brilliance.
Cheers WT
What I would like to do is click in a cell - run the macro, click in the next cell - run the macro etc etc etc. until all of the cells I need to effect are done.
When I recorded the macro, I hard coded the cell reference in it (F6).
Is there something I can change in the code that will tell it to run in the active cell?
Code:
Sub Macro2()
'
' Macro2 Macro
'
' Keyboard Shortcut: Ctrl+u
'
Selection.TextToColumns Destination:=Range("F6"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1), _
Array(7, 1), Array(8, 1)), TrailingMinusNumbers:=True
End Sub
Thank you all as always for your brilliance.
Cheers WT