Macro Question

siafc1

New Member
Joined
Jan 15, 2005
Messages
20
Can somebody please tell me the necessary macro to add one week to whatever date is in cell B11 of sheet4?

Thanks
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
XL (or VBA for that matter) stores date-time as numbers with the whole part (to the left of the decimal point) representing the date and the fraction part the time (24 hours). The date part is simply the number of days since an arbitrary starting point. So, given that a week is 7 days, a week after a particular date would be...
 
Upvote 0
"arbitrary starting point" + 7

I don't know how to create a macro that does that though. I know it's probably very simple. I'd be grateful of the code I'd need to create that macro.
 
Upvote 0
It would appear that Tusharm's Socratic approach failed, so :-

Sub Add_Seven_Days()
Sheets("Sheet4").[B11]=Sheets("Sheet4").[B11]+7
End Sub
 
Upvote 0

Forum statistics

Threads
1,203,675
Messages
6,056,683
Members
444,882
Latest member
cboyce44

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
Back
Top