#1   Report Post  
Taha Elian
 
Posts: n/a
Default copy many CHECKBOX

Hi
I made a checkbox in cell B1, linked with the cell A1.
I want to make about 50 checkbox. when I use copy and paste or the fill
handler, I find that all the checkboxes are linked to the same cell A1 !!!!
BUT what I neeed to make checkbox in B1 linked to A1, and checkbox in B2
linked with A2, and checkbox in B3 linked with cell A3,....and so on.
Please HOW TO DO SO ?
Thanks Taha

  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Taha,

You could create them through code

Sub AddFormsCheckBoxes()
Dim i As Long
With ActiveSheet
For i = 1 To 50
.CheckBoxes.Add(Range("B" & i).Left, Range("B" & i).Top - 2,
126, 18).Select
With Selection
.Caption = "CB" & i
.Name = "CB" & i
.LinkedCell = "A" & i
End With
Next i
End With

End Sub


--

HTH

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


"Taha Elian" <Taha wrote in message
...
Hi
I made a checkbox in cell B1, linked with the cell A1.
I want to make about 50 checkbox. when I use copy and paste or the fill
handler, I find that all the checkboxes are linked to the same cell A1

!!!!
BUT what I neeed to make checkbox in B1 linked to A1, and checkbox in B2
linked with A2, and checkbox in B3 linked with cell A3,....and so on.
Please HOW TO DO SO ?
Thanks Taha



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
Copy sheet to new workbook Tim Excel Discussion (Misc queries) 5 April 28th 05 02:00 PM
Copy worksheets with formulas between different workbooks Tim Excel Discussion (Misc queries) 3 March 31st 05 12:40 PM
Copy Function Genie Bohn Excel Discussion (Misc queries) 0 March 23rd 05 12:28 AM
How do i copy columns of data in notepad into microsoft excel? Jason Excel Discussion (Misc queries) 3 February 12th 05 02:04 AM
Copy and pasting graphs to PowerPoint JZip Excel Discussion (Misc queries) 0 January 6th 05 08:29 PM


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

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"