PC Review


Reply
Thread Tools Rate Thread

Creating a button in Macro

 
 
rmann11
Guest
Posts: n/a
 
      6th Oct 2009
I am trying to create a button or check mark so that when a user presses it a
number will appear, but when they 'deselect' the button or check mark that
number should become a 0 or a blank cell. I am very new to excel (as you can
probably tell) so any help would be amazing.
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      6th Oct 2009
Double-click any cell to add check marks.
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As
Boolean)
Cancel = True
If Not Intersect(Target, Range("A1:AZ100")) Is Nothing Then
If Target = "P" Then
Target = vbNullString
ElseIf Target = vbNullString Then
Target = "P"
Else
End If
End If
End Sub


Formall text as Wingdings 2!!

HTH,
Ryan---
--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"rmann11" wrote:

> I am trying to create a button or check mark so that when a user presses it a
> number will appear, but when they 'deselect' the button or check mark that
> number should become a 0 or a blank cell. I am very new to excel (as you can
> probably tell) so any help would be amazing.

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a button in Macro rmann11 Microsoft Excel Misc 2 7th Oct 2009 03:31 PM
Creating a button to execute a macro ZBelden Microsoft Excel Programming 4 1st Feb 2008 09:17 PM
Creating macro button on toolbar tanyhart Microsoft Excel Programming 1 13th Jul 2006 03:10 PM
Creating a macro which presses a button containing a recorded macro petros89 Microsoft Excel Programming 3 5th Oct 2005 02:49 PM
Creating a button and assigning macro Pasha Microsoft Excel Programming 1 8th Mar 2004 11:29 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:55 AM.