Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
see examples on my sheet.htm page, of course you would want to do error
checking. 'Copy the active worksheet to just before the currently active sheet [copy sheet] ActiveSheet.Copy Befo=ActiveSheet 'Copy the active worksheet to after the last worksheet ActiveSheet.Copy After:=Sheets(Sheets.Count)'Rename current Sheet ActiveSheet.Name = "Renamed14a"'delete constants, retaining formulas in the range d29-d46 Range(D29:D46).SpecialCells(xlConstants).ClearCont ents---HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001]My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htmSearch Page: http://www.mvps.org/dmcritchie/excel/search.htm "EAHRENS" wrote in message ... I use the following macro to create a duplicate sheet. Sheets("ICS 214").Select Sheets("ICS 214").Copy Befo=Sheets(2) ' End Sub The problem is it copies the user inputted data from the first sheet rather than giving me a blank section. How can I modify the macro so it will automatically delete info in a range of cells such as |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Editing a simple macro | Excel Worksheet Functions | |||
Modifying Macro | Excel Worksheet Functions | |||
macro with F9 | Excel Discussion (Misc queries) | |||
Make Alignment options under format cells available as shortcut | Excel Discussion (Misc queries) | |||
Playing a macro from another workbook | Excel Discussion (Misc queries) |