Excelでセルの色を別のセルの色に自動的にリンクするにはどうすればよいですか?
Microsoft Excelを使用しているときに、セルの色を別のセルの色に自動的にリンクする方法を知っていますか? この記事では、それを実現する方法を紹介します。
VBAコードを使用してセルの色を別のセルの色に自動的にリンクする
VBAコードを使用してセルの色を別のセルの色に自動的にリンクする
セルA1の塗りつぶし色をC1にリンクすると、A1の塗りつぶし色を変更すると、C1の色が自動的に同じ色に変わります。 次のようにしてください。
1.セルの色を別の色にリンクするために必要なシートタブを右クリックし、[ コードを表示 右クリックメニューから。
2.オープニングで アプリケーション向け Microsoft Visual Basic ウィンドウで、以下のVBAコードをコピーして貼り付けてください Code 窓。
VBAコード:Excelでセルの色を別のセルの色に自動リンクする
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Me.Range("C1").Interior.Color = Me.Range("A1").Interior.Color
End Sub
Note:必要に応じて、コード内のセル参照を変更できます。
3.先に進んで 他の + Q 同時にキーを閉じて アプリケーション向け Microsoft Visual Basic 窓。
これ以降、セルA1の塗りつぶし色を変更すると、セルC1の塗りつぶし色が自動的に同じ色に変更されます。
最高のオフィス生産性向上ツール
🤖 | Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行 | コードを生成 | カスタム数式の作成 | データを分析してグラフを生成する | Kutools関数を呼び出す... |
人気の機能: 重複を検索、強調表示、または識別する | 空白行を削除する | データを失わずに列またはセルを結合する | 数式なしのラウンド ... | |
スーパールックアップ: 複数の基準の VLookup | 複数の値の VLookup | 複数のシートにわたる VLookup | ファジールックアップ .... | |
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する | 依存関係のドロップダウン リスト | 複数選択のドロップダウンリスト .... | |
列マネージャー: 特定の数の列を追加する | 列の移動 | Toggle 非表示列の表示ステータス | 範囲と列の比較 ... | |
注目の機能: グリッドフォーカス | デザインビュー | ビッグフォーミュラバー | ワークブックとシートマネージャー | リソースライブラリ (自動テキスト) | 日付ピッカー | ワークシートを組み合わせる | セルの暗号化/復号化 | リストごとにメールを送信する | スーパーフィルター | 特殊フィルター (太字/斜体/取り消し線をフィルター...) ... | |
上位 15 のツールセット: 12 テキスト ツール (テキストを追加, 文字を削除する、...) | 50+ チャート 種類 (ガントチャート、...) | 40+ 実用的 式 (誕生日に基づいて年齢を計算する、...) | 19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...) | 12 変換 ツール (数字から言葉へ, 通貨の換算、...) | 7 マージ&スプリット ツール (高度な結合行, 分割セル、...) | ... もっと |
Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。 最も必要な機能を入手するにはここをクリックしてください...
Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作業をはるかに簡単にします
- Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
- 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
- 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
Sort comments by
#44645
This comment was minimized by the moderator on the site
0
0
#43686
This comment was minimized by the moderator on the site
0
0
#43843
This comment was minimized by the moderator on the site
Report
0
0
#43318
This comment was minimized by the moderator on the site
Report
0
0
#43355
This comment was minimized by the moderator on the site
Report
0
0
#43314
This comment was minimized by the moderator on the site
Report
0
0
#43316
This comment was minimized by the moderator on the site
Report
0
0
#44920
This comment was minimized by the moderator on the site
0
0
#43336
This comment was minimized by the moderator on the site
Report
0
0
#41437
This comment was minimized by the moderator on the site
0
0
#41547
This comment was minimized by the moderator on the site
Report
0
0
#41141
This comment was minimized by the moderator on the site
0
0
#40957
This comment was minimized by the moderator on the site
Report
0
0
#40138
This comment was minimized by the moderator on the site
Report
0
0
#39105
This comment was minimized by the moderator on the site
0
0
#39190
This comment was minimized by the moderator on the site
Report
0
0
#39206
This comment was minimized by the moderator on the site
0
0
#39332
This comment was minimized by the moderator on the site
Report
0
0
#39342
This comment was minimized by the moderator on the site
0
0
#37815
This comment was minimized by the moderator on the site
0
0
There are no comments posted here yet