Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Onclick button actions

Good morning all,

Is it possible to click a self made button in a Excel worksheet that
then carries a value into a macro?

I want to have a page where when a button is pressed ie November the
value is carried to a macro that then inserts it into the open file
code.

There is probably an easier way to do this but this is a challenge.

thanks

Dave
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 110
Default Onclick button actions

Try:

Sub Your_Button1_Click()
Debug.Print
ActiveSheet.Shapes(Application.Caller).TextFrame.C haracters.Text
End Sub

This will get you the buttons text.

Chrisso

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
Undo Command Button Actions Rob Excel Programming 1 September 9th 06 07:03 AM
OnClick [email protected] Excel Discussion (Misc queries) 1 August 31st 06 06:08 PM
Actions between user actions Indiana Epilepsy and Child Neurology[_2_] Excel Programming 5 August 23rd 06 09:22 PM
onClick in Excel Nicole Excel Programming 3 January 25th 05 09:45 AM
Command Button OnClick Ken McLennan[_3_] Excel Programming 2 September 29th 04 12:57 PM


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