Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I recorded a macro and here is what I got
Sub Macro5() ' ' Macro5 Macro ' ' Sheets("Current Loan Analysis").Select ActiveSheet.Unprotect Sheets("Current Loan Analysis").Select ActiveSheet.Buttons.Add(1082.25, 34.5, 125.25, 80.25).Select Sheets("Current Loan Analysis").Copy After:=Sheets(2) Sheets("Current Loan Analysis (2)").Select ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("Current Loan Analysis").Select ActiveSheet.Protect DrawingObjects:=False, Contents:=True, Scenarios:= _ False Range("J1").Select End Sub The problem is - Sheets("Current Loan Analysis").Copy After:=Sheets(2) next time there will be more sheets. I just want it added to the end. Also I want to include the macro button that runs this macro. Will this work? "Dave Peterson" wrote: It sounds like you're creating a new sheet, then copying the data from the other sheet. How about copying the original sheet. Record a macro when you do: edit|Move or copy sheet (check copy) and you'll see the code. JorgeG.ACT wrote: I have a macro which copies time sheets from the old/current sheet to a new sheet. I haave found that headers and other formating aspects of the sheet such as row width and the page scaling is not maitained in the new sheet. Is there a simple way of achieving this without resorting to using excels macro recording facility? Regards Jorge -- Dave Peterson |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
FORMATING ONE SHEET TO MOVE U TO ANOTHER | Excel Worksheet Functions | |||
selective sheet formating | Excel Programming | |||
Sheet Group & Formating in VBA | Excel Programming | |||
Inserting a row in sheet A should Insert a row in sheet B, removing a row in Sheet A should remove the corresponding row in sheet B | Excel Programming | |||
formating sheet | Excel Programming |