Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default New toolbar button

Can i create a new toolbar button which will format a cell in a particular
style?

I am trying to create a style similar to "Comma style" but without any
decimal places.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default New toolbar button

why not create such a style and apply it in the normal way.

or create it an link it to a button

Sub MyMacro()
selection..Style = "MyComma"
End Sub

go to tools = customize
command tab
right window go to Macros
left window, select custom button and drag it to a toolbar.

right click on the button and select assign macro.

assign the above macro. Make other modifications as desired

close the customize dialog.

--
Regards,
Tom Ogilvy


"attaboy" wrote:

Can i create a new toolbar button which will format a cell in a particular
style?

I am trying to create a style similar to "Comma style" but without any
decimal places.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
toolbar button Dennis S. Excel Discussion (Misc queries) 5 July 9th 08 03:52 AM
Toolbar button fda secretary Excel Discussion (Misc queries) 1 October 22nd 07 09:41 PM
button on toolbar tango Excel Programming 2 October 21st 04 08:46 AM
Delete a custom button by holding down the ALT key and dragging the button off the toolbar Stephen[_8_] Excel Programming 0 April 4th 04 02:22 PM
Toolbar Button Gary Chan Excel Programming 4 August 21st 03 09:20 PM


All times are GMT +1. The time now is 10:16 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"