Hi,
I'm to macros and no idea what to do and what do I do wrong. I recorded few different macros for my excel sheet what continuously changing. I have products there and different variations under the products so the idea was that, to select rows and run the correct macro. I think I'm nearly there but when I run the macro it always want to overwrite the data in the row I've created it and I want the data to be written in the same row where I run the macro.
Is there some easy solution let's say add a line in the macro to change the T4 cell to whatever row T column?
Here is one of them:
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+p
'
Selection.TextToColumns Destination:=Range("T4"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=True, Other:=True, OtherChar:= _
"=", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1)), _
TrailingMinusNumbers:=True
End Sub
Thank you!
I'm to macros and no idea what to do and what do I do wrong. I recorded few different macros for my excel sheet what continuously changing. I have products there and different variations under the products so the idea was that, to select rows and run the correct macro. I think I'm nearly there but when I run the macro it always want to overwrite the data in the row I've created it and I want the data to be written in the same row where I run the macro.
Is there some easy solution let's say add a line in the macro to change the T4 cell to whatever row T column?
Here is one of them:
Sub Macro1()
'
' Macro1 Macro
'
' Keyboard Shortcut: Ctrl+p
'
Selection.TextToColumns Destination:=Range("T4"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=True, _
Semicolon:=False, Comma:=False, Space:=True, Other:=True, OtherChar:= _
"=", FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1)), _
TrailingMinusNumbers:=True
End Sub
Thank you!