Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I write a macro in XL that will delete 1st row and save th.
I would like to create a macro that deletes the the first row or the first
two rows and saves the file with a new predefined name and location. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
How do I write a macro in XL that will delete 1st row and save th.
With Activeworkbook .Worksheets("Sheet1").Rows("1:2").Delete .SaveAs Filename:= myFile End With where myFile is the predefined name. -- HTH RP (remove nothere from the email address if mailing direct) "Nitin" wrote in message ... I would like to create a macro that deletes the the first row or the first two rows and saves the file with a new predefined name and location. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
2007 Macro to Open File, Delete Contents, Save New File | Excel Discussion (Misc queries) | |||
How write Macro to save worksheet to a RELATIVE address | Excel Discussion (Misc queries) | |||
how do I write a request to 'Save As' Macro | Excel Discussion (Misc queries) | |||
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? | Excel Worksheet Functions | |||
Need to save/write ranges to a workbook | Excel Programming |