Guest User

Untitled

a guest
Jan 16th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. Sub AddCheckBoxes()
  2. On Error Resume Next
  3. Dim c As Range, myRange As Range
  4. Set myRange = Selection
  5. For Each c In myRange.Cells
  6. ActiveSheet.CheckBoxes.Add(c.Left, c.Top, c.Width, c.Height).Select
  7. With Selection
  8. .LinkedCell = c.Address
  9. .Characters.Text = ""
  10. .Name = c.Address
  11.  
  12. End With
  13. Next
  14. myRange.Select
  15. End Sub
Add Comment
Please, Sign In to add comment