The objetive is to separate text concentred in column A in A B C which is separeted by space
Need to execute this line native from VBA from QM to the active worksheet:
This is the full code:
The result should be: Range A1:A5 = XXX, Range B1:B5 = YYY, Range C1:C5 = ZZZ... I tought that VbsExec could make it like this way but dont know how, please help
Need to execute this line native from VBA from QM to the active worksheet:
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=False, Semicolon:=False, Comma:=False, Space:=True, Other:=False, FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True
This is the full code:
typelib Excel
Excel.Application a._create
Excel.Workbook b=a.Workbooks.Add()
ExcelSheet es.ws=b.Worksheets.Item(1)
es.Activate(4) ;;activate Excel
es.ws.Application.Sheets.Item(1).Name = "Plan de Trabajo y Retorno del C"
int w=win("" "XLMAIN")
max w
str f.expandpath("$desktop$\test45.xls")
del f; err
b.SaveAs(f @ @ @ @ @ 1)
es.ws.Application.ActiveWindow.Zoom=85
Hoja 1
es.ws.Application.ActiveSheet.Range("A1:A5").Value = "XXX YYY ZZZ"
es.ws.Application.ActiveSheet.Range("A1:A5").Select
str code=
Selection.TextToColumns Destination:=Range("A1"), DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=False, Semicolon:=False, Comma:=False, Space:=True, Other:=False, FieldInfo:=Array(Array(1, 1), Array(2, 1), Array(3, 1)), TrailingMinusNumbers:=True
VbsExec code
The result should be: Range A1:A5 = XXX, Range B1:B5 = YYY, Range C1:C5 = ZZZ... I tought that VbsExec could make it like this way but dont know how, please help