Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default MACRO TO UPDATE DATES !



In my Excel sheet the ranges C4:C10, C12:C18, C20:C26, C28:C34 and
C36:C42 contain dates in the usual successive order. For example, if
C4:C10 contain the dates 10/1/03 to 10/7/03, then C12:C18 will contain
the dates 10/8/03 to 10/14/03, C12:C18 will contain 10/15/03 to 10/21/03
and so on.
I need a macro that when executed will update the dates to start
over. For example, if the last date in the last range C36:C42 is
11/4/2003, then to start over C4:C10 will update as 11/5/03 to 11/11/03,
C12:C18 will update as 11/12/03 to 11/18/03 , and so on. I would
appreciate your assistance. Thank you !

Jay Dean

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MACRO TO UPDATE DATES !


Range("C4").Value = Range("C42").Value + 1

--
Regards,
Tom Ogilvy


"jay dean" wrote in message
...


In my Excel sheet the ranges C4:C10, C12:C18, C20:C26, C28:C34 and
C36:C42 contain dates in the usual successive order. For example, if
C4:C10 contain the dates 10/1/03 to 10/7/03, then C12:C18 will contain
the dates 10/8/03 to 10/14/03, C12:C18 will contain 10/15/03 to 10/21/03
and so on.
I need a macro that when executed will update the dates to start
over. For example, if the last date in the last range C36:C42 is
11/4/2003, then to start over C4:C10 will update as 11/5/03 to 11/11/03,
C12:C18 will update as 11/12/03 to 11/18/03 , and so on. I would
appreciate your assistance. Thank you !

Jay Dean

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 154
Default MACRO TO UPDATE DATES !


Tom -
Your code only updates cell C4. I need one that updates the other
range of cells below it as specified in my earlier post. Any help will
be appreciated. Thanks.

Jay Dean


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default MACRO TO UPDATE DATES !

If you used formulas to build your successive dates, the macro would be
sufficient.

--
Regards,
Tom Ogilvy


"jay dean" wrote in message
...

Tom -
Your code only updates cell C4. I need one that updates the other
range of cells below it as specified in my earlier post. Any help will
be appreciated. Thanks.

Jay Dean


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Update dates annually Misty Sunshine Excel Worksheet Functions 2 August 31st 10 10:56 AM
Update 2009 dates to 2010 dates EllenM Excel Discussion (Misc queries) 7 October 22nd 09 02:57 PM
macro to automatically update dates Cheryl Excel Worksheet Functions 1 August 14th 08 11:14 PM
need help to update macro to office 2007 macro enabled workbook jatman Excel Discussion (Misc queries) 1 December 14th 07 01:57 PM
No update of dates [email protected] Excel Discussion (Misc queries) 7 May 29th 05 06:36 AM


All times are GMT +1. The time now is 09:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"