Як виділити змінені / оновлені комірки в Excel?
Іноді вам може знадобитися виділити змінені клітинки під час редагування аркуша / книги, щоб стежити за змінами, але як ви можете впоратися з цим у Excel?
Виділіть змінені комірки за допомогою Track Changes
Виділіть змінені комірки кодом VBA
Виділіть змінені комірки в таблицях за допомогою Tables Merge
Виділіть змінені комірки за допомогою Track Changes
В Excel функція Track Changes може виділити зміни.
1. Збережіть книгу, перш ніж застосовувати Track Changes , а потім натисніть Review > Track Changes > Highlight Changes.
2 В Highlight Changes діалогове вікно, перевірте обидва Track changes while editing. This also shares your workbook і Highlight changes on screen варіанти. Крім того, ви можете вказати обмеження часу, користувачів та діапазону під час відстеження змін.
3. клацання OK. Зараз Microsoft Excel з'явиться діалогове вікно, яке нагадує вам про збереження книги.
4. клацання OK. Тепер нова модифікована буде виділена кутом.
![]() |
![]() |
![]() |
Чайові: ця функція працює для всієї книги.
Виділіть змінені комірки кодом 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

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)
'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.

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.

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.
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!
Sort comments by
#29034
This comment was minimized by the moderator on the site
0
0
#36165
This comment was minimized by the moderator on the site
0
0
#36215
This comment was minimized by the moderator on the site
Report
0
0
#37033
This comment was minimized by the moderator on the site
0
0
There are no comments posted here yet