Date Question

jeancake

Board Regular
Joined
Nov 3, 2008
Messages
56
I'm looking for the code that would allow me to a date stamp in the title of the report, but I would need the date to be for the day before.

For example if today is 7/19/2010 I would like the report to read : "Data as of 7/18/2010"

I know that this is basic, but I can't seem to get the code right.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
If this is in VBA you need code like

Code:
Range("A1").Value = "Data as of " & Format(Date - 1, "mm/dd/yyyy")
 
Upvote 0

Forum statistics

Threads
1,195,617
Messages
6,010,728
Members
441,565
Latest member
menangterus556

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top