0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

チェックボックスのリンクを一括で設定する方法

セルに配置したチェックボックスのリンクをひとつずつ右クリックで設定する場合

チェックボックスpng.png
チェックボックスの数だけ右クリックしてセルを選択するのはめんどくさいですね

チェックボックスのひとつ右のセルとリンクさせるコード

Sub AllCheckBoxLink()

Dim CheckBox As CheckBox

For Each CheckBox In ActiveSheet.CheckBoxes

  CheckBox.LinkedCell = CheckBox.TopLeftCell.Offset(0, 1).Address

Next CheckBox

End Sub

実行結果
チェックボックス2.png

E列の字の色をセルの色と合わせるとTRUE / FALSE が見えなくなってすっきりします。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?