Note: The other languages of the website are Google-translated. Back to English

Excelで変更/更新されたセルを強調表示するにはどうすればよいですか?

シート/ワークブックを編集して変更を追跡するときに、変更されたセルを強調表示したい場合がありますが、Excelでどのように処理できますか?

変更を追跡して変更されたセルを強調表示する

変更されたセルをVBAコードで強調表示します

Tables Mergeを使用して、テーブル内の変更されたセルを強調表示します


変更を追跡して変更されたセルを強調表示する

Excelでは、変更の追跡機能で変更を強調表示できます。

1.適用する前にワークブックを保存します Track Changes 機能をクリックし、 Review > Track Changes > Highlight Changes.
ドキュメントは変更されたセルを強調表示します1

2。 の中に Highlight Changes ダイアログ、両方を確認してください Track changes while editing. This also shares your workbook 及び Highlight changes on screen オプション。 また、変更を追跡しながら、時間、ユーザー、範囲の制限を指定できます。
ドキュメントは変更されたセルを強調表示します2

3。 クリック OK。 今すぐ Microsoft Excelの ダイアログボックスが表示され、ブックを保存するように通知されます。
ドキュメントは変更されたセルを強調表示します3

4。 クリック OK。 これで、新しく変更されたものが角度で強調表示されます。

ドキュメントは変更されたセルを強調表示します4 右矢印ドキュメント ドキュメントは変更されたセルを強調表示します5

先端:この関数はブック全体で機能します。


変更されたセルをVBAコードで強調表示します

ジョブを処理するためにVBAコードが必要な場合は、次のように実行できます。

1。 押す Alt + F11 を有効にするためのキー Microsoft Visual Basic for Applications 窓。

2。 クリック Insert > Module、次にでダブルクリックします ThisWorkbook in VBAProject ペインを作成し、以下のコードをスクリプトに貼り付けます。

VBA:セルアドレスをコピーして貼り付ける

'UpdatebyExtendoffice20180307
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
    If Target.Value <> "" Then
        Target.Interior.ColorIndex = 6
    End If
End Sub

doc highlight modified cells 6

3. Save the code and go back to the workbook, while you modified the sheet, the cells will be highlighted with a background color.
doc highlight modified cells 7

Note: If you just want to apply the highlight in current sheet, just right click at the sheet tab and click View Code in the context menu, then paste below code to the script.
doc highlight modified cells 8

Private Sub WorkSheet_Change(ByVal Target As Range)
'UpdatebyExtendoffice20180307
    If Target.Value <> "" Then
        Target.Interior.ColorIndex = 6
    End If
End Sub

Highlight the modified cells in tables with Tables Merge

If you want to update a main table based on another one, and then highlight the modified/new data in the main table, you can try Kutools for Excel’s Tables Merge feature.

Kutools for Excel, with more than 300 handy functions, makes your jobs more easier. 

After installing Kutools for Excel, please do as below:(Free Download Kutools for Excel Now!)

1. Select the main table which needs to be modified or updated by other table, and click Kutools Plus > Tables Merge.
doc highlight modified cells 9

2. Select the table range you want to update the main table based on in Tables Merge wizard.
doc highlight modified cells 10

3. Click Next, and select the key column you want to compare two tables based on.
doc highlight modified cells 11

4. Click Next, select the columns you want to update.
doc highlight modified cells 12

5. Click Next, in the Highlight options section, select the background color and font color you want to use for the modified cells.
doc highlight modified cells 13

6. Click Finish and Yes close dialogs. Now the modified cells have been highlighted.
doc highlight modified cells 14


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office / Excel 2007-2021 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Comments (4)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Gracias por el aporte, es muy útil
This comment was minimized by the moderator on the site
Hi,
Thanks for the code. I realise that once you do the code to highlight any changes it gets rid of the 'undo' functionality. Why is that?
This comment was minimized by the moderator on the site
Is it possible to modify this code to show when the results of a formula change in a cell instead of just a value?
This comment was minimized by the moderator on the site
Hi there. Wondering if there might be an option to highlight the rows of cells if the target range cells have NOT modified over a period of time. For eg, if the target field cell has not had any alterations in 7 days, the entire row of data would flash red.
Would appreciate the help! Fantastic help above in any case.
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL