Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like to create a button by a visual basic code.
On my first sheet I have a button. If I click on this button a new page is created. On this new page I would like to create a button with a macro code, but I don't know how. So the button on sheet 2 has to be created by a macro code behind the button on page 1. In summary, the macro behind the button on sheet 1 has to include the creation of a new page with a button. Thanks for helping! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I just recorded this.
Sub Macro1() ' ' Macro1 Macro ' Macro recorded 8/21/2008 by Donald B. Guillett ' ' Sheets.Add ActiveSheet.Shapes.AddShape(msoShapeRectangle, 249#, 22.5, 47.25, 35.25). _ Select Selection.OnAction = "Rectangle1_Click" 'OR 'Selection.OnAction = "Macro1" End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Ruben" wrote in message ... I would like to create a button by a visual basic code. On my first sheet I have a button. If I click on this button a new page is created. On this new page I would like to create a button with a macro code, but I don't know how. So the button on sheet 2 has to be created by a macro code behind the button on page 1. In summary, the macro behind the button on sheet 1 has to include the creation of a new page with a button. Thanks for helping! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks!!
"Don Guillett" wrote: I just recorded this. Sub Macro1() ' ' Macro1 Macro ' Macro recorded 8/21/2008 by Donald B. Guillett ' ' Sheets.Add ActiveSheet.Shapes.AddShape(msoShapeRectangle, 249#, 22.5, 47.25, 35.25). _ Select Selection.OnAction = "Rectangle1_Click" 'OR 'Selection.OnAction = "Macro1" End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Ruben" wrote in message ... I would like to create a button by a visual basic code. On my first sheet I have a button. If I click on this button a new page is created. On this new page I would like to create a button with a macro code, but I don't know how. So the button on sheet 2 has to be created by a macro code behind the button on page 1. In summary, the macro behind the button on sheet 1 has to include the creation of a new page with a button. Thanks for helping! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create a button | Excel Discussion (Misc queries) | |||
Where is interactive button for save as a Web Page | Excel Discussion (Misc queries) | |||
page forward button | Excel Discussion (Misc queries) | |||
Command button dissapearing down page | Excel Discussion (Misc queries) | |||
How to Create a Command Button | Excel Discussion (Misc queries) |