Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default button in a cell to activate a macro

Is there a way to create a button in a cell that when clicked will activate a
macro?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 123
Default button in a cell to activate a macro

Display the Forms toolbar, select the Button button, and drag a
rectangle on your worksheet. It will prompt you to assign the macro.
I haven't tried this in 2007, but I imagine that they moved this to
one of the drawing tools now.

On May 29, 5:00 pm, alexfair
wrote:
Is there a way to create a button in a cell that when clicked will activate a
macro?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default button in a cell to activate a macro

Hi,
One way:
View Toolbars Forms
Select the button (hover mouse over each to find "button")
Click on the sheet where you want the button to be.
The Assign Macro window will open.
Choose the macro you want the button to run.
Format the button as desired (Change size, text, etc)
Click away from the button to exit edit mode.
Click button to run macro.

You can also do the same with the shapes from the drawing toolbar

Regards - Dave.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default button in a cell to activate a macro

great, i was trying to do the same thing, another poster helped me there. if
i accidently created one, how do i delete it?

"Dave" wrote:

Hi,
One way:
View Toolbars Forms
Select the button (hover mouse over each to find "button")
Click on the sheet where you want the button to be.
The Assign Macro window will open.
Choose the macro you want the button to run.
Format the button as desired (Change size, text, etc)
Click away from the button to exit edit mode.
Click button to run macro.

You can also do the same with the shapes from the drawing toolbar

Regards - Dave.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ann ann is offline
external usenet poster
 
Posts: 210
Default button in a cell to activate a macro

nevermind, i was able to delete it.

"Ann" wrote:

great, i was trying to do the same thing, another poster helped me there. if
i accidently created one, how do i delete it?

"Dave" wrote:

Hi,
One way:
View Toolbars Forms
Select the button (hover mouse over each to find "button")
Click on the sheet where you want the button to be.
The Assign Macro window will open.
Choose the macro you want the button to run.
Format the button as desired (Change size, text, etc)
Click away from the button to exit edit mode.
Click button to run macro.

You can also do the same with the shapes from the drawing toolbar

Regards - Dave.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default button in a cell to activate a macro

Buttons cannot go into a cell.

They can only lie on top of a cell.

See other replies for adding a button to your sheet.

If you want to just double-click on a cell use double-click event code in the
sheet module.

Private Sub Worksheet_BeforeDoubleClick( _
ByVal Target As Excel.Range, Cancel As Boolean)

your code or macroname

End sub


Gord Dibben MS Excel MVP

On Thu, 29 May 2008 14:00:00 -0700, alexfair
wrote:

Is there a way to create a button in a cell that when clicked will activate a
macro?

Thanks


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default button in a cell to activate a macro

Thanks for the help guys! It was much appreciated!
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
How do I activate right mouse button in Excel Gerhard Setting up and Configuration of Excel 4 April 4th 08 11:51 AM
Attaching Macro to Cell instead of button? Satchmo2006 Excel Discussion (Misc queries) 2 August 29th 07 10:20 PM
activate macro only in sheet2 Narkom Excel Worksheet Functions 3 March 20th 06 09:21 PM
activate a worksheet formula through a button TUNGANA KURMA RAJU Excel Discussion (Misc queries) 5 November 12th 05 09:28 AM
activate a cell value through a macro TUNGANA KURMA RAJU Excel Discussion (Misc queries) 1 November 10th 05 08:48 AM


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