month change

  • Thread starter Thread starter nowfal
  • Start date Start date
N

nowfal

Hi,

I have entered wrong month in a spread sheet that is few rows
mean so many line. Now i wanted to change that with a formula or an
short cut. Will it possible to change.
the date format is in colomn A , it is like this 01/08/04, 02/08/04 an
so on, now i wanted to change the month 08 to 09.
ie.01/09/04,02/09/04 .
Any suggestion will be highly appreciated.
thanks
nowfa
 
try
Sub changedate()
For Each c In Selection
c.Value = DateSerial(Year(c), Month(c) + 1, Day(c))
Next c
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

monthly & quarterly Summery 6
macro help 1
Access Count dates within a Month 4
Dates & Text? 6
Calculating Months within a specific period 6
How to count the occurrence? 3
vlookup using match and date range 1
SUMIF Formula Help 8

Back
Top