PC Review


Reply
Thread Tools Rate Thread

Date "E2" to add 7 days How?

 
 
Corey
Guest
Posts: n/a
 
      7th Nov 2006
I think this is quite simple but i want to create a short code to add 7 days
to a date in cell E2.
The cell is formatted so it display a date in a 31 October 2006 view.

Please help.


Regards

Corey


 
Reply With Quote
 
 
 
 
Corey
Guest
Posts: n/a
 
      7th Nov 2006
Never mind worked it out.

activecell.FormulaR1C1 = [E2] + 7


Regards

Corey


 
Reply With Quote
 
Corey
Guest
Posts: n/a
 
      7th Nov 2006
How about adding 7 days to ALL sheets that have a date in Cell E2 ?



--
Regards

Corey


 
Reply With Quote
 
Corey
Guest
Posts: n/a
 
      7th Nov 2006
Ok, i have done it the hard way by a macro for each sheet.

But i have a max on 3 other sheets (Not Yet Created) that i need the cell
E2 to have 7 days added to also.

I want to add a step to the below code for each sheet, that checks to see if
that sheets exists 1st.
If not then exits sub.



~~~~~~~~~~~~~~~~~~~
Sub Sheet15UpdateDate()
Sheet15.Select ' <=================== How do i check to see if this is a
sheet or not 1st ???
Range("E2").Activate
If Range("E2").Value <> "" Then
activecell.FormulaR1C1 = [E2] + 7
End If
Sheet4.Select
End Sub


~~~~~~~~~~~~~~~~~~

--
Regards


 
Reply With Quote
 
Corey
Guest
Posts: n/a
 
      7th Nov 2006
solved


Corey


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to join date/time field when "days" are same but "time" differ =?Utf-8?B?TWlrYWVsIExpbmRxdmlzdA==?= Microsoft Access Queries 4 9th Nov 2007 10:51 PM
START DATE: DateAdd("y",-[LEAD TIME DAYS],[SHIP DATE]) - weekend?? =?Utf-8?B?S3Jpc3RhbHRpcHM=?= Microsoft Access 12 5th Apr 2007 09:36 PM
How to go "X" number of days out from a undefined date? =?Utf-8?B?TWF4?= Microsoft Excel Misc 3 19th Feb 2007 08:44 PM
get a runing total for"curent date"or(cell)minus prev 30 days( cel =?Utf-8?B?ZHVzdGlu?= Microsoft Excel Worksheet Functions 2 1st Aug 2006 09:59 AM
Can I calculate "date + number of days" in a Word template? =?Utf-8?B?TWVXaXZGcmVl?= Microsoft Word Document Management 3 1st Apr 2006 10:41 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:17 AM.