Option Explicit Sub test() Dim TempSht As Worksheet Dim rRng As Range Dim sFullPath As String sFullPath = ThisWorkbook.Path & Application.PathSeparator With Sheet1 Set rRng = .Range(.Cells(8, 2), .Cells(.Rows.Count, 7).End(xlUp)) End With Set TempSht = Sheets.Add rRng.Copy TempSht.Range("A1") TempSht.Copy ActiveWorkbook.SaveAs Filename:=sFullPath & "testing.txt", FileFormat:=xlCSV, CreateBackup:=False Application.DisplayAlerts = False TempSht.Delete ActiveWorkbook.Close True Application.DisplayAlerts = True End Sub
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
Connect with Certified Experts to gain insight and support on specific technology challenges including:
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE