pedro-egoli
Well-known Member
- Joined
- Apr 25, 2004
- Messages
- 1,217
- Office Version
- 2016
- Platform
- Windows
I have the following macro that places date in cell I7.
If code is run I would like conditional formatting as follows for cell I7.
Font - Bold
Border - Outline
Pattern - Light blue
Cell would remain blank if code is not run.
Thanks
Pedro
Code:
Sub currenttime1()
d = Date
Set Displaytime = Sheets(1).Range("i7")
Displaytime.Cells(1, 1) = Str(d)
Columns("i:i").AutoFit
End Sub
If code is run I would like conditional formatting as follows for cell I7.
Font - Bold
Border - Outline
Pattern - Light blue
Cell would remain blank if code is not run.
Thanks
Pedro