+ Reply to Thread
Results 1 to 3 of 3

Year question

  1. #1
    Greg B
    Guest

    Year question

    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



  2. #2
    Norman Jones
    Guest

    Re: Year question

    Hi Greg,

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

    Change A1 to the cell of interest.

    ---
    Regards,
    Norman



    "Greg B" <[email protected]> wrote in message
    news:[email protected]...
    >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
    >




  3. #3
    Greg B
    Guest

    Re: Year question

    Thanks Norman work great

    Greg
    "Norman Jones" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Greg,
    >
    > With Range("A1")
    > .NumberFormat = "General"
    > .Value = Year(Date)
    > End With
    >
    > Change A1 to the cell of interest.
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "Greg B" <[email protected]> wrote in message
    > news:[email protected]...
    >>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
    >>

    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1