Sub newsheet()
n = Worksheets.Count
Sheets("Special").Copy After:=Sheets(n)
End Sub
Sub button_maker()
Application.CommandBars("Forms").Visible = True
ActiveSheet.Buttons.Add(290.25, 69, 51.75, 41.25).Select
Selection.OnAction = "newsheet"
Application.CommandBars("Forms").Visible = False
End Sub
button_maker just creates a typical "forms" button. Once run, it can be
discarded. newsheet will create a copy of a sheet called "Special" and put
it at the end. Modify as you require.
--
Gary's Student
gsnu200712
"Mikey C" wrote:
> Hi all
>
> I'm trying to create a command button which will copy an existing pre-
> format worksheet (which I will probably hide) and insert the copied
> sheet into the existing workbook but I have no idea how to do this! I
> want to do this so users can create their own records without messing-
> up the overall format (and make it simpler for them).
>
> Can anybody help me?
>
> Thanks
>
> Mike
>
>
|