Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default How do I launch my macro by button?

Hi, there.

I have a macro runs on my excel file.
Only way I know to run this macro is pressing F5 in VB editor.

Now I want to create some type of userform has a button to activate my
macro.

Would you explain how to do this if you have a chance?

Thank you for taking time to read this..

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default How do I launch my macro by button?

Make sure that the Forms toolbar is visible (ToolsCustomize and check
Forms).
Drag the button from this toolbar onto the worksheet
It will then prompt to assign a macro, select yours

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Steven" wrote in message
oups.com...
Hi, there.

I have a macro runs on my excel file.
Only way I know to run this macro is pressing F5 in VB editor.

Now I want to create some type of userform has a button to activate my
macro.

Would you explain how to do this if you have a chance?

Thank you for taking time to read this..



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
Is it possible to make a Button on a tool bar to launch an Add-in Wolf Excel Discussion (Misc queries) 1 June 24th 05 12:13 AM
Macro launch - Button vs Manual launch , has different results. Wayne Excel Programming 4 February 23rd 05 11:33 AM
button to launch my userform JasonSelf[_6_] Excel Programming 2 January 26th 04 04:11 PM
Can I launch the Calendar Control from a Comand Button kathryn Excel Programming 2 November 12th 03 04:25 PM
Launch Macro in Access via Macro running in Excel??? dgrant Excel Programming 1 September 24th 03 01:38 PM


All times are GMT +1. The time now is 06:48 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"