Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-31-2023, 09:32 AM
Richard0298 Richard0298 is offline Conditional Format a cell if modified Windows 10 Conditional Format a cell if modified Office 2013
Novice
Conditional Format a cell if modified
 
Join Date: Aug 2023
Posts: 1
Richard0298 is on a distinguished road
Default Conditional Format a cell if modified

I would like the cells in a column to highlight when changed, but only for the day. This would start over the next day. I can't use "today" because there is no date associated with the cells. I am updating pricing and don't want to highlight manually each cell as I change them, using this as a check list basically.
Reply With Quote
  #2  
Old 09-02-2023, 09:52 AM
rollis13's Avatar
rollis13 rollis13 is offline Conditional Format a cell if modified Windows 11 Conditional Format a cell if modified Office 2016
Competent Performer
 
Join Date: Jan 2021
Location: Cordenons
Posts: 140
rollis13 will become famous soon enough
Default

Have a try my macros. You can possibly modify them according to your needs.
Macro to be pasted in the sheet's module, it will highlight cells in column C if changed:
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("C2:C" & Cells(Rows.Count, "C").End(xlUp).Row)) Is Nothing Then Target.Interior.ColorIndex = 6
End Sub
Macro to paste into the ThisWorkBook module, when the file is opened for the first time in the day it will remove highlighting in column C cells if today's date is later than the last day the file was updated (saved):
Code:
Option Explicit
Private Sub Workbook_Open()
    If WorksheetFunction.EDate(CreateObject("Scripting.FileSystemObject").GetFile(ActiveWorkbook.Name).DateLastModified, 0) < WorksheetFunction.EDate(Now, 0) Then Range("C2:C" & Cells(Rows.Count, "C").End(xlUp).Row).Interior.ColorIndex = xlNone
End Sub
Reply With Quote
Reply

Tags
checklist, conditional formatting, pricing changes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Format a cell if modified Conditional format a table cell based on percentage range Kiwi971 Mail Merge 7 10-03-2022 11:25 PM
Conditional Format a cell if modified How to conditional format a table cell in word based on it's value. JulianS96 Word VBA 9 10-20-2021 02:25 AM
Conditional Format a cell if modified Question re: Conditional formatting (cell occurs after another cell) Saywarder Excel 1 04-20-2015 11:29 AM
Conditional Format a cell if modified Conditional Format cell appearance Excel 2007 Gary Drumm Excel 3 02-22-2014 01:43 AM
How can I fill cell color starting from Cell D5 using Conditional formatting instead Learner7 Excel 0 07-08-2010 05:50 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:25 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft