Hi,
I have a worksheet (In a workbook with several sheets) that I want to save to a tab delimited text file.
I want to include the full range of data on the worksheet except the header row.
Currently I can't even figure out how to achieve this without a macro, so I've not even been able to record and modify the action.
Any help?
Many thanks
Last edited by jlt199; 09-23-2010 at 07:29 AM.
Something like this:
Sub test() ActiveSheet.Copy Rows(1).Delete ActiveWorkbook.SaveAs Filename:="C:\Export.txt", FileFormat:=xlText ActiveWorkbook.Close False End Sub
If you want to specify a specific sheet the first line would be something like:
Sheets("Sheet1").Copy
Dom
"May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."
Use code tags when posting your VBA code: [code] Your code here [/code]
Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.
Perfect!!
Thanks :D
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks