Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
pls let me know how to collect details from the spreadsheet and placing in
text file using macros. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Can't underdstand your question, please explain yourself.
"Baskaran" wrote: pls let me know how to collect details from the spreadsheet and placing in text file using macros. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
This is what you get when you use the macro recorder with your source workbook
open. Sub Macro6() Range("A1:F34").Select 'collect the details Selection.Copy 'open a new workbook Workbooks.Add Template:="Workbook" Range("A1").Select ActiveSheet.Paste 'paste the copied details to new book Range("A1").Select Application.CutCopyMode = False 'now save the new book as s *.txt file ActiveWorkbook.SaveAs Filename:= _ "C:\Program Files\Microsoft Office\exceldata\Book1.txt", _ FileFormat:=xlText, _ CreateBackup:=False ActiveWorkbook.Save ActiveWindow.Close End Sub Gord Dibben MS Excel MVP On Tue, 4 Mar 2008 10:26:03 -0800, Baskaran wrote: pls let me know how to collect details from the spreadsheet and placing in text file using macros. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro Help Needed - Excel 2007 - Print Macro with Auto Sort | Excel Worksheet Functions | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
My excel macro recorder no longer shows up when recording macro | Excel Discussion (Misc queries) | |||
using a cell value to control a counter inside a macro and displaying macro value | Excel Worksheet Functions | |||
Macro needed to Paste Values and prevent Macro operation | Excel Discussion (Misc queries) |