PC Review


Reply
Thread Tools Rate Thread

CommandbarButton.Execute method not working for drawing shapes

 
 
Jeff Abbott
Guest
Posts: n/a
 
      20th Jun 2008
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
 
Reply With Quote
 
 
 
 
Jim Rech
Guest
Posts: n/a
 
      20th Jun 2008
It looks like we've lost some functionality. Even the new ribbon commands
have the same non-result:

CommandBars.ExecuteMso "ShapeFreeform"

--
Jim
"Jeff Abbott" <(E-Mail Removed)> wrote in message
news:6A2127D2-86E7-473E-B303-(E-Mail Removed)...
| 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


 
Reply With Quote
 
Jeff Abbott
Guest
Posts: n/a
 
      20th Jun 2008
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" <(E-Mail Removed)> wrote in message
> news:6A2127D2-86E7-473E-B303-(E-Mail Removed)...
> | 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
>
>
>

 
Reply With Quote
 
Jim Rech
Guest
Posts: n/a
 
      20th Jun 2008
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" <(E-Mail Removed)> wrote in message
news:9FAEE319-2EB8-4148-A08E-(E-Mail Removed)...
| 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" <(E-Mail Removed)> wrote in message
| > news:6A2127D2-86E7-473E-B303-(E-Mail Removed)...
| > | 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
| >
| >
| >


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
When drawing shapes in excel the shapes keep disappearing =?Utf-8?B?VGFwZQ==?= Microsoft Excel Misc 1 6th Oct 2006 04:23 PM
Drawing Shapes =?Utf-8?B?TEdGTg==?= Microsoft Powerpoint 3 9th May 2006 08:01 PM
Method 'PasteFace' of objetc 'CommandBarButton' failed =?Utf-8?B?RGVubmlz?= Microsoft Excel Programming 1 29th Apr 2006 03:53 AM
drawing and moving shapes Andreas Schubert Microsoft VB .NET 1 24th Mar 2005 03:41 PM
Drawing Shapes on Forms ? Dave Ruhl Microsoft Access 3 3rd Jun 2004 10:23 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:03 PM.