#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Checkboxes

I have very many rows I would like to create a checkbox for (we're talking
about 800 -900 rows) Is there a way to create this and include the link to
the cell that is just right of it.

E.g. A1 should be all checkbox from row A1 to A900 and then they should each
be linked to B1 to B900 respectively.

In advance. thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Checkboxes


Sub Macro1()
Dim cell As Range
Dim cbx As CheckBox

For Each cell In Range("D5:D25")
Set cbx = ActiveSheet.CheckBoxes.Add(241.5, 51.75, 46.5, 17.25)
With cbx
.Value = xlOff
.LinkedCell = cell.Address
.Display3DShading = False
.Height = cell.Height
.Top = cell.Top
.Left = cell.Left + cell.Width
End With
Next
End Sub


"Anders J." wrote:

I have very many rows I would like to create a checkbox for (we're talking
about 800 -900 rows) Is there a way to create this and include the link to
the cell that is just right of it.

E.g. A1 should be all checkbox from row A1 to A900 and then they should each
be linked to B1 to B900 respectively.

In advance. thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Checkboxes

Thank you, saved me for heaps of time!

I'm pretty new in the VB coding. The cbx appeared in column B. How do i
remove my old ones from column A and manipulate the code you sent me to put
the cbx in column A instead of B?



"Patrick Molloy" wrote:


Sub Macro1()
Dim cell As Range
Dim cbx As CheckBox

For Each cell In Range("D5:D25")
Set cbx = ActiveSheet.CheckBoxes.Add(241.5, 51.75, 46.5, 17.25)
With cbx
.Value = xlOff
.LinkedCell = cell.Address
.Display3DShading = False
.Height = cell.Height
.Top = cell.Top
.Left = cell.Left + cell.Width
End With
Next
End Sub


"Anders J." wrote:

I have very many rows I would like to create a checkbox for (we're talking
about 800 -900 rows) Is there a way to create this and include the link to
the cell that is just right of it.

E.g. A1 should be all checkbox from row A1 to A900 and then they should each
be linked to B1 to B900 respectively.

In advance. thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Checkboxes

F5
Special
Objects
OK
Delete


"Anders J." wrote:

Thank you, saved me for heaps of time!

I'm pretty new in the VB coding. The cbx appeared in column B. How do i
remove my old ones from column A and manipulate the code you sent me to put
the cbx in column A instead of B?



"Patrick Molloy" wrote:


Sub Macro1()
Dim cell As Range
Dim cbx As CheckBox

For Each cell In Range("D5:D25")
Set cbx = ActiveSheet.CheckBoxes.Add(241.5, 51.75, 46.5, 17.25)
With cbx
.Value = xlOff
.LinkedCell = cell.Address
.Display3DShading = False
.Height = cell.Height
.Top = cell.Top
.Left = cell.Left + cell.Width
End With
Next
End Sub


"Anders J." wrote:

I have very many rows I would like to create a checkbox for (we're talking
about 800 -900 rows) Is there a way to create this and include the link to
the cell that is just right of it.

E.g. A1 should be all checkbox from row A1 to A900 and then they should each
be linked to B1 to B900 respectively.

In advance. thanks

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
Use of checkboxes Mark Stephens Excel Programming 2 June 1st 08 02:01 PM
VBA Checkboxes [email protected] Excel Programming 6 April 23rd 08 04:57 PM
checkboxes hshayhorn Excel Programming 3 September 6th 07 11:18 PM
Help with Checkboxes James Walker Excel Programming 0 January 5th 07 07:09 PM
Using Checkboxes Brad Excel Programming 5 January 10th 05 08:47 PM


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