#1   Report Post  
Posted to microsoft.public.excel.misc
sunkosi
 
Posts: n/a
Default code suggestion

I am attempting to assign a function to a command button. Upon a single
mouse click it will report a preassigned cell value to a target address. The
application is a freestyle kayak competition judging spreadsheet. The result
will automate the judging.

Thoughts?


  #2   Report Post  
Posted to microsoft.public.excel.misc
Gazzr
 
Posts: n/a
Default code suggestion


I can help with the assigning a macro to a command button part

Rightclick the toolbar, select customise, select the commands tab.

Click on Macro under the "Categories" box. Then select Custom Button
from the Commands box.

Drag the button to the tool bar. Once you have done that right click on
the button and select Assign macro. Then select the macro you want to
assign and click OK.

First you will need to design the macro!

Regards
Gazzr


--
Gazzr
------------------------------------------------------------------------
Gazzr's Profile: http://www.excelforum.com/member.php...o&userid=31075
View this thread: http://www.excelforum.com/showthread...hreadid=539077

  #3   Report Post  
Posted to microsoft.public.excel.misc
JLatham
 
Posts: n/a
Default code suggestion

If you want the click of the button to assign a value to the currently
selected (active) cell, then this code for the button will work:
Sub Button2_Click()
ActiveCell.Value = 56
End Sub

This would always assign a value of 56 to the active cell when the button is
clicked.

If you need it to put a specified value into a particular cell on the
currently active sheet then use something like this:
Range("A1").Value = 56

Then no matter where you are on the sheet, the value 56 would always be
placed into A1 on the currently active sheet.

"sunkosi" wrote:

I am attempting to assign a function to a command button. Upon a single
mouse click it will report a preassigned cell value to a target address. The
application is a freestyle kayak competition judging spreadsheet. The result
will automate the judging.

Thoughts?


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
code not unique find latest date Barbara Wiseman Excel Discussion (Misc queries) 3 December 11th 05 08:50 AM
VLOOKUP for Zip Code Ranges JerseyJR Excel Worksheet Functions 2 September 6th 05 06:37 PM
Conform a total to a list of results? xmaveric Excel Discussion (Misc queries) 1 August 21st 05 07:22 PM
Macro for changing text to Proper Case JPriest Excel Worksheet Functions 3 August 8th 05 09:31 PM
close form code tkaplan Excel Discussion (Misc queries) 1 June 3rd 05 10:49 PM


All times are GMT +1. The time now is 03:51 PM.

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"