
Sub Macro1()
ChDir "D:"
Workbooks.OpenText Filename:= _
"D:FILE_RIDOTTO.txt", Origin:= _
xlWindows, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, _
Comma:=False, Space:=False, Other:=True, OtherChar:="|", FieldInfo:= _
Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1)), _
TrailingMinusNumbers:=True
Cells.Find(What:="NXWEB_TITOLO_DETT", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
Range(Selection, Selection.End(xlDown)).Select
Selection.EntireRow.Delete
ActiveWorkbook.Save
ActiveWorkbook.Save
ActiveWindow.Close
End Sub |
Sub Macro1()
ChDir "D:"
Workbooks.OpenText Filename:= _
"D:FILE_RIDOTTO.txt", Origin:= _
xlWindows, StartRow:=1, DataType:=xlDelimited, TextQualifier:= _
xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, _
Comma:=False, Space:=False, Other:=True, OtherChar:="|", FieldInfo:= _
Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1)), _
TrailingMinusNumbers:=True
Cells.Find(What:="NXWEB_TITOLO_DETT", After:=ActiveCell, LookIn:= _
xlFormulas, LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False).Activate
Range(Selection, Selection.End(xlDown)).Select
Selection.EntireRow.Delete
ActiveWorkbook.SaveAs Filename:= ""D:FILE_RIDOTTO", (*.txt), *.txt"
ActiveWindow.Close
End Sub
|
ActiveWorkbook.SaveAs Filename:= "D:FILE_RIDOTTO, (*.txt), *.txt" |
ActiveWorkbook.SaveAs Filename:=Mydir & "" & Nomefile & ".txt", FileFormat:=xlUnicodeText |
