Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear All,
What code do I use to reference and then delete a commandbutton that is embedded on a worksheet in workbook(B). The code has to go in a module in workbook(A). Any help greatly appreciated Jason |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi jase
If the workbook is open you can use this for a control toolbox button Workbooks("OtherWorkbook.xls").Sheets("Sheet1").OL EObjects("TheButton").Delete -- Regards Ron de Bruin http://www.rondebruin.nl "jase" wrote in message oups.com... Dear All, What code do I use to reference and then delete a commandbutton that is embedded on a worksheet in workbook(B). The code has to go in a module in workbook(A). Any help greatly appreciated Jason |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
cheers Ron
|
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
so the OLEObjects collaction comprises all things embedded in
worksheets? |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Nope. For instance, you can add controls from the Forms toolbar or shapes from
the Drawing toolbar. These aren't OLEObjects. jase wrote: so the OLEObjects collaction comprises all things embedded in worksheets? -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
to complement Dave's thought - all the items on the worksheet are in the
shapes collection. -- Regards, Tom Ogilvy "Dave Peterson" wrote in message ... Nope. For instance, you can add controls from the Forms toolbar or shapes from the Drawing toolbar. These aren't OLEObjects. jase wrote: so the OLEObjects collaction comprises all things embedded in worksheets? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
CommandButton to open a Excel workbook | Excel Discussion (Misc queries) | |||
Delete Forms CommandButton on Worksheet | Excel Discussion (Misc queries) | |||
How to Delete a Range in Closed Workbook (to Replace Delete Query) | Excel Discussion (Misc queries) | |||
How do I delete a workbook after the vba has run? | Excel Programming | |||
Close WorkBook with CommandButton | Excel Programming |