Hi,
I have a Macro that run fine, it text to columns and then copies a stored Formula from E1 and auto fills the column.
What i want is to store the Formula in the macro but i dont know how, every time i try it give me erros.
The Formula stored in E1 is ="“admin”;”base”;”Default”;”simple”;"""&""""&A1&""""&";"&""""&B1&""""&";"&""""&C1&""""&";"&""""&D1&""""
My current macro is below any help would be great as i can never get formula working in macros!!!
Kele
Sub SplitOut()
'
' SplitOut Macro
'
LastRow = Range("A65536").End(xlUp).Row
Columns("A:A").Select
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1))
Range("E1").AutoFill Destination:=Range("E1:E" & LastRow)
End Sub
I have a Macro that run fine, it text to columns and then copies a stored Formula from E1 and auto fills the column.
What i want is to store the Formula in the macro but i dont know how, every time i try it give me erros.
The Formula stored in E1 is ="“admin”;”base”;”Default”;”simple”;"""&""""&A1&""""&";"&""""&B1&""""&";"&""""&C1&""""&";"&""""&D1&""""
My current macro is below any help would be great as i can never get formula working in macros!!!
Kele
Sub SplitOut()
'
' SplitOut Macro
'
LastRow = Range("A65536").End(xlUp).Row
Columns("A:A").Select
Application.CutCopyMode = False
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, _
TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, _
Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
:=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1))
Range("E1").AutoFill Destination:=Range("E1:E" & LastRow)
End Sub