Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Dear Rob
Find and Replace should be the easiest way to do this. Would like to know whether all entries are displayed if you enter year to be replaced and click 'Find All' in the Find and Replace Window If this post helps click Yes -------------- Jacob Skaria "Rob" wrote: I wan to create a macro which will change the dates once a year to the current year. I have a range of dates beginning with 01/01/2008 and I want to change these dates to the current year and I want to be able to run this macro each year to update the year that is in the cells to the current year. I can replace code but how do I state that to replace 200* with the current year. Please help...Thanks in advance. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here is what I have written thus far:
Selection.Replace What:="200", Replacement:="2009", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False I want to replace the "What" portion with "200" and a wild card like (*) to capture all years and the Replacement clause with the current year. (Not just 2009 but any current year). |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Current year and current week number | Excel Discussion (Misc queries) | |||
current week, current month, current year | Excel Programming | |||
Combination Graph with current year and prior year sales | Charts and Charting in Excel | |||
Get Current Year | Excel Programming | |||
How to compare current year to prior year in bar chart? | Charts and Charting in Excel |