auto.pilot
Well-known Member
- Joined
- Sep 27, 2007
- Messages
- 719
As the title says... my workbook has sheets called Summary and Detail. I recorded the following, which simply creates a new workbook with two sheets. However, the new sheets include all the formulas, filters and two buttons. I'd like to run this and display only the values, visible cells and omit the buttons on the newly created workbook.
How can I do this?
Thanks in advance.
Jim
How can I do this?
Thanks in advance.
Jim
Code:
Sub newBook()
'
' newBook Macro
'
'
Sheets(Array("Summary", "Detail")).Select
Sheets("Detail").Activate
ActiveSheet.Buttons.Add(604.5, 78, 66, 48).Select
ActiveSheet.Buttons.Add(687.75, 86.25, 51, 36).Select
Sheets(Array("Summary", "Detail")).Copy
End Sub