Year question

  • Thread starter Thread starter Greg B
  • Start date Start date
G

Greg B

I am having problems working out a simple little sum. I have a userform
when I have a new member join I want it to add the current year. How can I
get excel to do this the easy way. I currently have it paste the now()
value and have set the cell to show yyyy but unfortuantely when I go to the
next cell where I want to have the worksheet work out the years member
section it comes up as volitile.

Any Ideas

Thanks

Greg
 
Hi Greg,

With Range("A1")
.NumberFormat = "General"
.Value = Year(Date)
End With

Change A1 to the cell of interest.
 
Hi,
I'm not an expert but maybe something like this in your code:
Activecell.Formula = Year(Now())

HTH
JG
 
Thanks Norman work great

Greg
Norman Jones said:
Hi Greg,

With Range("A1")
.NumberFormat = "General"
.Value = Year(Date)
End With

Change A1 to the cell of interest.
 

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

Back
Top