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

just add the button, and while its in design mode, right click and choose view code, then add your code between the two lines generated for you.

----- Ranjan as usual wrote: ----

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
 
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
Event Procedures: Event on Worksheet to fire Event on another Worksheet Kathryn Excel Programming 2 April 7th 04 07:35 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 09:02 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"