Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Attaching a buttom with an event on VBA

If you get a bottom from the Forms toolbar, when you drag it onto the
worksheet, it will prompt to assign a macro.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Ranjan as usual" wrote in message
...
Dear folks,
I want to add a button to my excel sheet, which when clicked runs the code

that I wrote under the VBA editor. How do I link this button to the code, so
the event fires? My code simply clears the empty rows. Any pointers will be
appreciated.

cheers,

Ranjan



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
2 Macros 1 Buttom Sudipta Sen[_2_] Excel Worksheet Functions 2 December 14th 09 01:38 PM
Create buttom that saves current file in a given filename (Excel) mamealemka Excel Worksheet Functions 3 March 17th 06 12:02 PM
How do I add command buttom? rgarber50 Excel Discussion (Misc queries) 1 July 11th 05 03:39 AM
Attaching a buttom with an event on VBA chris Excel Programming 0 April 28th 04 05:01 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


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

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

About Us

"It's about Microsoft Excel"