A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Check box



 
 
Thread Tools Display Modes
  #1  
Old October 11th, 2005, 07:55 AM
accessman2
external usenet poster
 
Posts: n/a
Default Check box


In Excel:


How can I make Checkbox on each row? Thanks.


--
accessman2
------------------------------------------------------------------------
accessman2's Profile: http://www.excelforum.com/member.php...o&userid=27953
View this thread: http://www.excelforum.com/showthread...hreadid=474980

  #2  
Old October 11th, 2005, 08:24 AM
Norman Jones
external usenet poster
 
Posts: n/a
Default

Hi Accessman,

Using VBA, try:

'=============
Sub InsertCheckBoxes()
Dim rng As Range
Dim c As Range

Set rng = Range("A1:A20") '====== CHANGE

Application.ScreenUpdating = False
For Each c In rng.Cells
With ActiveSheet.CheckBoxes.Add(c.Left _
+ 5, c.Top - 2, 5, 5)
.Caption = ""
.LinkedCell = c.Address(False, False)
End With
c.Font.Color = vbWhite
Next c
Application.ScreenUpdating = True

End Sub
'=============

Change ("A1:A20") to your range of interest.

If you are not faniliar with macros, you may wish to visit David McRitchie's
'Getting Started With Macros And User Defined Functions' at:

http://www.mvps.org/dmcritchie/excel/getstarted.htm


---
Regards,
Norman



"accessman2" wrote
in message ...

In Excel:


How can I make Checkbox on each row? Thanks.


--
accessman2
------------------------------------------------------------------------
accessman2's Profile:
http://www.excelforum.com/member.php...o&userid=27953
View this thread: http://www.excelforum.com/showthread...hreadid=474980



 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I check multiple check boxes with one click? tobesus Using Forms 1 August 12th, 2005 01:38 AM
One Check box to check all check boxes Mark Senibaldi Using Forms 2 April 12th, 2005 04:27 PM
File Check Out System Emily Database Design 3 September 29th, 2004 05:25 PM
Spelling & Grammar Check -- Marked Text Skip Larry Coles General Discussion 1 September 6th, 2004 01:10 AM
Check box used in Macro Kurt Using Forms 2 September 1st, 2004 03:22 PM


All times are GMT +1. The time now is 08:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.