redspanna
Well-known Member
- Joined
- Jul 27, 2005
- Messages
- 1,604
- Office Version
- 365
- Platform
- Windows
Hi all
when my macro is run I want to check the date formatted as yyyy-mm-dd in cell A1
If A1 = TODAY()-1 then A1 = TODAY()
if A1 = TODAY() then A1 =TODAY()+1
code I have at the moment is...
how can this bit of code be changed to add in my 'if' conditions above?
many thanks
when my macro is run I want to check the date formatted as yyyy-mm-dd in cell A1
If A1 = TODAY()-1 then A1 = TODAY()
if A1 = TODAY() then A1 =TODAY()+1
code I have at the moment is...
Code:
Sub Clear
Range("A1").FormulaR1C1 = "=TODAY()+1"
many thanks