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 » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

format an entire column to contain checkbox activex control



 
 
Thread Tools Display Modes
  #1  
Old December 19th, 2005, 09:26 AM posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: n/a
Default format an entire column to contain checkbox activex control

I learned out how to insert one checkbox, but how do I insert them down an
entire row - copy paste paste special does not seem to work..
  #2  
Old December 19th, 2005, 02:07 PM posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: n/a
Default format an entire column to contain checkbox activex control

Hi Blunoob,

Try:

'=============
Public Sub Tester01()
Dim SH As Worksheet
Dim rng As Range
Dim rCell As Range

Set SH = ActiveSheet '==== CHANGE

Set rng = SH.Range("A1:A100") '==== CHANGE

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

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

If you are new to 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



"blunoob" wrote in message
...
I learned out how to insert one checkbox, but how do I insert them down an
entire row - copy paste paste special does not seem to work..



 




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
Scrolling text on splash screen Damon Using Forms 20 November 3rd, 2005 10:37 PM
a fomula for an entire column Johnny General Discussion 2 July 6th, 2005 12:49 PM
Copy one cell to entire column Tom General Discussion 3 April 28th, 2005 03:26 PM
Having trouble with multi-select list box in Access brandelfly New Users 4 February 10th, 2005 07:36 PM
Combo Box Control - CONTROL tab missing from FORMAT CONTROL dialogue JE McGimpsey Worksheet Functions 0 March 11th, 2004 06:47 PM


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