PC Review


Reply
Thread Tools Rate Thread

Better looking command buttons on a worksheet

 
 
Josh Sale
Guest
Posts: n/a
 
      24th Apr 2007
My add-in dynamically creates a number of command buttons that sit on the
worksheet. I use code like:

activeSheet.OLEObjects.Add(ClassType:="Forms.CommandButton.1", ...)

This is all well and good. However the command buttons that get created are
the old fashioned (Windows 3?) square buttons that just don't look very good
anymore.

Is there a way to get more "modern" command buttons? You know, rounded
corners, etc. The buttons need to be OLEObjects (as opposed to say Form
command buttons) because I need the events raised by OLEObject command
buttons.

TIA,

josh




 
Reply With Quote
 
 
 
 
Robin Hammond
Guest
Posts: n/a
 
      25th Apr 2007
Josh,

You could create your own pictures, insert them into the sheet, then assign
a macro to the picture.

--
Robin Hammond
www.enhanceddatasystems.com


"Josh Sale" <jsale@tril dot cod> wrote in message
news:%(E-Mail Removed)...
> My add-in dynamically creates a number of command buttons that sit on the
> worksheet. I use code like:
>
> activeSheet.OLEObjects.Add(ClassType:="Forms.CommandButton.1", ...)
>
> This is all well and good. However the command buttons that get created
> are the old fashioned (Windows 3?) square buttons that just don't look
> very good anymore.
>
> Is there a way to get more "modern" command buttons? You know, rounded
> corners, etc. The buttons need to be OLEObjects (as opposed to say Form
> command buttons) because I need the events raised by OLEObject command
> buttons.
>
> TIA,
>
> josh
>
>
>
>



 
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
Renaming Worksheet Command Buttons Alan Beban Microsoft Excel Programming 1 31st Jul 2007 06:34 PM
Command Buttons on Worksheet Distorted =?Utf-8?B?Q2FybGVl?= Microsoft Excel Programming 2 17th May 2007 02:34 AM
Re: 'Save current worksheet'; 'Open next worksheet' - two command buttons englishmustard Microsoft Excel Misc 0 7th Apr 2006 12:54 PM
'Save current worksheet'; 'Open next worksheet' - two command buttons englishmustard Microsoft Excel Misc 0 7th Apr 2006 12:50 PM
How to use command buttons to link to worksheet? jembry Microsoft Excel Worksheet Functions 1 3rd Jun 2004 03:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 AM.