ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   CommandbarButton.Execute method not working for drawing shapes (https://www.excelbanter.com/excel-programming/412873-commandbarbutton-execute-method-not-working-drawing-shapes.html)

Jeff Abbott

CommandbarButton.Execute method not working for drawing shapes
 
In office 2007 my code I use to auto-execute command bar functions don't work
any longer for drawing shapes. Other items like New workbook work fine.

For example, this line of code when executed in the immediate window of
Excel VBA should draw a freeform shape:

excel.CommandBars.FindControl(,200).Execute

The cursor does indeed change to that used for drawing a freeform (ID=200),
and the freeform buttons on the Insert-Shapes ribbon are indeed depressed
just as they are when you manually initiate drawing by clicking on the button.

Any ideas? Is the interface being deprecated?

Any help would be greatly appreciated.

Jeff

Jim Rech

CommandbarButton.Execute method not working for drawing shapes
 
It looks like we've lost some functionality. Even the new ribbon commands
have the same non-result:

CommandBars.ExecuteMso "ShapeFreeform"

--
Jim
"Jeff Abbott" wrote in message
...
| In office 2007 my code I use to auto-execute command bar functions don't
work
| any longer for drawing shapes. Other items like New workbook work fine.
|
| For example, this line of code when executed in the immediate window of
| Excel VBA should draw a freeform shape:
|
| excel.CommandBars.FindControl(,200).Execute
|
| The cursor does indeed change to that used for drawing a freeform
(ID=200),
| and the freeform buttons on the Insert-Shapes ribbon are indeed depressed
| just as they are when you manually initiate drawing by clicking on the
button.
|
| Any ideas? Is the interface being deprecated?
|
| Any help would be greatly appreciated.
|
| Jeff



Jeff Abbott

CommandbarButton.Execute method not working for drawing shapes
 
I'm working on upgrading a VB6 application to Office 2007. Is there a
reference or sample COM Add-in that demonstrates how to integrate with the
Fluent UI using VB6?

"Jim Rech" wrote:

It looks like we've lost some functionality. Even the new ribbon commands
have the same non-result:

CommandBars.ExecuteMso "ShapeFreeform"

--
Jim
"Jeff Abbott" wrote in message
...
| In office 2007 my code I use to auto-execute command bar functions don't
work
| any longer for drawing shapes. Other items like New workbook work fine.
|
| For example, this line of code when executed in the immediate window of
| Excel VBA should draw a freeform shape:
|
| excel.CommandBars.FindControl(,200).Execute
|
| The cursor does indeed change to that used for drawing a freeform
(ID=200),
| and the freeform buttons on the Insert-Shapes ribbon are indeed depressed
| just as they are when you manually initiate drawing by clicking on the
button.
|
| Any ideas? Is the interface being deprecated?
|
| Any help would be greatly appreciated.
|
| Jeff




Jim Rech

CommandbarButton.Execute method not working for drawing shapes
 
Not really my area but I understand chapter 18 of Stephen Bullen's et al.
book discusses it:

http://www.oaltd.co.uk/Excel2007ProgRef/default.htm

based on his comment at the end of this page:


http://www.dailydoseofexcel.com/arch...ers-reference/

--
Jim
"Jeff Abbott" wrote in message
...
| I'm working on upgrading a VB6 application to Office 2007. Is there a
| reference or sample COM Add-in that demonstrates how to integrate with the
| Fluent UI using VB6?
|
| "Jim Rech" wrote:
|
| It looks like we've lost some functionality. Even the new ribbon
commands
| have the same non-result:
|
| CommandBars.ExecuteMso "ShapeFreeform"
|
| --
| Jim
| "Jeff Abbott" wrote in message
| ...
| | In office 2007 my code I use to auto-execute command bar functions
don't
| work
| | any longer for drawing shapes. Other items like New workbook work
fine.
| |
| | For example, this line of code when executed in the immediate window
of
| | Excel VBA should draw a freeform shape:
| |
| | excel.CommandBars.FindControl(,200).Execute
| |
| | The cursor does indeed change to that used for drawing a freeform
| (ID=200),
| | and the freeform buttons on the Insert-Shapes ribbon are indeed
depressed
| | just as they are when you manually initiate drawing by clicking on the
| button.
| |
| | Any ideas? Is the interface being deprecated?
| |
| | Any help would be greatly appreciated.
| |
| | Jeff
|
|
|




All times are GMT +1. The time now is 02:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com