Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 287
Default Change Dates

Hello,

Needing code that looks at a Column B on Tab "123" and if there are any
dates < todays date then change to todays date.

Thanks,
Aaron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Change Dates

Sub fixdate()
For Each c In Range("b2:b22")
If IsDate(c) And c < Date Then c.Value = Date
Next
End Sub

--
Don Guillett
SalesAid Software

"Aaron" wrote in message
...
Hello,

Needing code that looks at a Column B on Tab "123" and if there are any
dates < todays date then change to todays date.

Thanks,
Aaron



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
Dates That Change Bob Excel Worksheet Functions 1 November 3rd 06 09:49 PM
Dates change the next day. TimM Excel Worksheet Functions 6 January 1st 06 10:52 PM
How do I change dates from dd/mm/yy to mm/dd/yy Dotteee Setting up and Configuration of Excel 2 November 17th 05 02:02 PM
Excel dates change Mags Excel Worksheet Functions 1 November 11th 05 05:14 PM
how can i change dates from US to UK format kuju Excel Discussion (Misc queries) 1 November 9th 05 01:49 PM


All times are GMT +1. The time now is 06:55 AM.

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

About Us

"It's about Microsoft Excel"