Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Pasting ActiveX or Form Controls

I am building a template, which I'd like to contain numerous check boxes. I
may have up to 10,000 or more check boxes, 10 per row, 1,000 rows. Is there
a way to copy and paste one row, and have the pasted check boxes linked cell
update automatically? In other words, if I have one check box per cell in
row 9, and each is linked to the cell in which it is contained, (i.e. b9, c9,
d9, etc.) I would like to repeat the format on the next 500 - 1000 rows,
having each control linked to its respective cell. So, the column would stay
the same, and the row would change. Is there a way to do that without having
to enter the properties or format control and changing each one separately?

Thanks in advance,
Jason
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Pasting ActiveX or Form Controls

Jason,

Rather than use checkboxes, how about inputting directly into the cells,
using the Marlett font and event code. Here is a msimple example using cells
A1:A100, but you can adapt that.. You just check the cell value for a then
to finf a tick,

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Application.EnableEvents = False
On Error GoTo sub_exit
If Not Intersect(Target, Range("A1:A100")) Is Nothing Then
With Target
If .Value = "a" Then
.Value = ""
Else
.Value = "a"
.Font.Name = "Marlett"
End If
.Offset(0, 1).Select
End With
End If
sub_exit:
Application.EnableEvents = True
End Sub

'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.



--

HTH

RP
(remove nothere from the email address if mailing direct)


"jcliquidtension" wrote in
message ...
I am building a template, which I'd like to contain numerous check boxes.

I
may have up to 10,000 or more check boxes, 10 per row, 1,000 rows. Is

there
a way to copy and paste one row, and have the pasted check boxes linked

cell
update automatically? In other words, if I have one check box per cell in
row 9, and each is linked to the cell in which it is contained, (i.e. b9,

c9,
d9, etc.) I would like to repeat the format on the next 500 - 1000 rows,
having each control linked to its respective cell. So, the column would

stay
the same, and the row would change. Is there a way to do that without

having
to enter the properties or format control and changing each one

separately?

Thanks in advance,
Jason



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
ActiveX Controls leerem Excel Discussion (Misc queries) 0 December 11th 08 01:11 PM
Tab between ActiveX controls Tekhnikos Excel Discussion (Misc queries) 0 August 12th 08 03:42 PM
ActiveX Controls Charly Excel Discussion (Misc queries) 1 October 18th 06 01:53 PM
ActiveX Controls vs Form Controls Alex Excel Discussion (Misc queries) 1 January 11th 06 08:46 AM
ActiveX Controls David Fixemer Excel Programming 4 February 16th 04 05:20 PM


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