Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
checkbox
I can't get the linkedcell to work on my checkbox. This is the procedu
Sub addcheckbox() Dim cboxname As Integer Dim cell As Range Dim chk As Excel.CheckBox Set cell = ActiveCell Set chk = cell.Parent.CheckBoxes.Add(cell.Left, cell.Top, cell.Width, cell.Height) chk.Height = cell.Height - 1.5 cboxname = ActiveCell.EntireRow.Cells(8) chk.Characters.Text = "Add to Estimate" chk.Name = "Checkbox" & cboxname chk.Value = xlOff chk.LinkedCell = ActiveCell.EntireRow.Cells(3) ActiveCell.Select End Sub |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
checkbox
You need to set it to the cell address:
chk.LinkedCell = ActiveCell.EntireRow.Cells(3).Address -- Hope that helps. Vergel Adriano "ranswert" wrote: I can't get the linkedcell to work on my checkbox. This is the procedu Sub addcheckbox() Dim cboxname As Integer Dim cell As Range Dim chk As Excel.CheckBox Set cell = ActiveCell Set chk = cell.Parent.CheckBoxes.Add(cell.Left, cell.Top, cell.Width, cell.Height) chk.Height = cell.Height - 1.5 cboxname = ActiveCell.EntireRow.Cells(8) chk.Characters.Text = "Add to Estimate" chk.Name = "Checkbox" & cboxname chk.Value = xlOff chk.LinkedCell = ActiveCell.EntireRow.Cells(3) ActiveCell.Select End Sub |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
checkbox
that was easy
Thank You "Vergel Adriano" wrote: You need to set it to the cell address: chk.LinkedCell = ActiveCell.EntireRow.Cells(3).Address -- Hope that helps. Vergel Adriano "ranswert" wrote: I can't get the linkedcell to work on my checkbox. This is the procedu Sub addcheckbox() Dim cboxname As Integer Dim cell As Range Dim chk As Excel.CheckBox Set cell = ActiveCell Set chk = cell.Parent.CheckBoxes.Add(cell.Left, cell.Top, cell.Width, cell.Height) chk.Height = cell.Height - 1.5 cboxname = ActiveCell.EntireRow.Cells(8) chk.Characters.Text = "Add to Estimate" chk.Name = "Checkbox" & cboxname chk.Value = xlOff chk.LinkedCell = ActiveCell.EntireRow.Cells(3) ActiveCell.Select End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
checkbox | Excel Worksheet Functions | |||
How to have Checkbox A uncheck with checked Checkbox B | Excel Discussion (Misc queries) | |||
link a checkbox in a sheet to a checkbox on a userform? | Excel Programming | |||
How do I link one checkbox to update another checkbox? | Excel Programming | |||
checkbox on form reset from checkbox on sheet | Excel Programming |