如何突出顯示Excel中修改/更新的單元格?
有時(shí),您可能希望在編輯工作表/工作簿以遵循更改時(shí)突出顯示已修改的單元格,但是如何在Excel中處理呢?
使用“跟蹤更改”突出顯示已修改的單元格
用VBA代碼突出顯示修改后的單元格
使用表格合并突出顯示表格中修改的單元格
使用“跟蹤更改”突出顯示已修改的單元格
在Excel中,“跟蹤更改”功能可以突出顯示更改。
1.保存工作簿,然后再應(yīng)用 Track Changes 功能,然后單擊 Review > Track Changes > Highlight Changes
.

2.在 Highlight Changes 對(duì)話框,同時(shí)選中 Track changes while editing. This also shares your workbook 和 Highlight changes on screen
選項(xiàng)。 另外,您可以在跟蹤更改時(shí)指定時(shí)間,用戶和范圍的限制。
3。 點(diǎn)擊 OK。 現(xiàn)在 微軟的Excel
對(duì)話框出現(xiàn),并提示您保存工作簿。
4。 點(diǎn)擊 OK。 現(xiàn)在,新的修改將以一個(gè)角度突出顯示。
Tips::此功能適用于整個(gè)工作簿。
用VBA代碼突出顯示修改后的單元格
如果需要VBA代碼來(lái)處理作業(yè),則可以執(zhí)行以下操作:
1。 按 Alt + F11 啟用 Microsoft Visual Basic for Applications 窗口。
2。 點(diǎn)擊 Insert > Module,然后雙擊 ThisWorkbook in VBAProject 窗格,并將下面的代碼粘貼到腳本中。
VBA:復(fù)制和粘貼單元格地址
UpdatebyExtend
office20180307
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
If Target.Value <> "" Then
Target.Interior.ColorIndex = 6
End If
End Sub
3. Save the code and go back to the workbook, while you modified the sheet, the cells will be highlighted with a background color.
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.
Private Sub WorkSheet_Change(ByVal Target As Range)
UpdatebyExtend
office20180307
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.
Free Downloadfree full-featured in 30 days
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.
2. Select the table range you want to update the main table based on in Tables Merge wizard.
3. Click Next, and select the key column you want to compare two tables based on.
4. Click Next, select the columns you want to update.
5. Click Next, in the Highlight options section, select the background color and font color you want to use for the modified cells.
6. Click Finish and Yes close dialogs. Now the modified cells have been highlighted.
Best Office Productivity Tools
Transform Hours into Minutes with Kutools for Excel!
Ready to supercharge your Excel tasks? Harness the power of Kutools for Excel - your ultimate time-saving tool. Streamline intricate tasks and glide through your data like a pro. Experience Excel at lightning speed!
Why You Need Kutools for Excel
??? Over 300 Powerful Features: Kutools is packed with more than 300 advanced features, simplifying your work in over 1500 scenarios.
?? Superior Data Processing: Merge cells, remove duplicates, and perform advanced data conversions – all without breaking a sweat!
?? Efficient Batch Operations: Why put in extra effort when you can work smart? Import, export, combine, and tweak data in bulk with ease.
?? Customizable Charts and Reports: Access a broad variety of additional charts and generate insightful reports that tell a story.
??? Powerful Navigation Pane: Gain an advantage with the robust Column Manager, Worksheet Manager, and Custom Favorites.
?? Seven Types of Drop-down Lists: Make data entry a breeze with drop-down lists of various features and types.
?? User-Friendly: A breeze for beginners and a powerful tool for experts.
Download Now and Soar Through Time with Excel!
Read More... Free Download... Purchase...
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!
Read More... Free Download... Purchase...