Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default How do I set a macro to run when I click a Command Button in Exce.

I'm new to this whole Visual Basic macro-programming world however have
recorded and run macros in Excel 5.0 in the past with great success.

I have recorded a macro that creates a Chart in my workbook based on the
data that I select. I want to place a Command Button on the Data Input sheet
that will run this chart macro after the pertinent data-range has been
selected. How do I accomplish this task?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default How do I set a macro to run when I click a Command Button in Exce.

In the Click event of the command button put:
call MyChartMacro (or whatever name you have given to the macro that
makes the chart)

GMet
"thewizrd" wrote in message
...
I'm new to this whole Visual Basic macro-programming world however have
recorded and run macros in Excel 5.0 in the past with great success.

I have recorded a macro that creates a Chart in my workbook based on the
data that I select. I want to place a Command Button on the Data Input

sheet
that will run this chart macro after the pertinent data-range has been
selected. How do I accomplish this task?



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
Remove Command Button After Click andiam24 Excel Discussion (Misc queries) 4 April 1st 09 04:51 PM
Command Button Click bmolintas Excel Discussion (Misc queries) 4 November 8th 07 10:37 PM
further options following a command button click thesaxonuk Excel Discussion (Misc queries) 0 October 23rd 06 01:46 PM
Is there any way to have a maco click a command button ChairMan Excel Discussion (Misc queries) 0 March 23rd 06 03:58 PM
Linking one worksheet to another by click on a command button Ken Vo Excel Discussion (Misc queries) 0 January 6th 06 12:41 AM


All times are GMT +1. The time now is 07:04 AM.

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"