+ Reply to Thread
Results 1 to 4 of 4

Date to Number format

  1. #1
    Roger B.
    Guest

    Date to Number format

    I have a date in a cell which is in Date format and I would like to convert
    this to a whole number format (ie no decimals in the result) using a macro.



    Any suggestions would be greatly appreciated.



    Roger



  2. #2
    Ray A
    Guest

    RE: Date to Number format

    one way;
    copy the date and then paste special >values
    HTH

    "Roger B." wrote:

    > I have a date in a cell which is in Date format and I would like to convert
    > this to a whole number format (ie no decimals in the result) using a macro.
    >
    >
    >
    > Any suggestions would be greatly appreciated.
    >
    >
    >
    > Roger
    >
    >
    >


  3. #3
    Roger B.
    Guest

    Re: Date to Number format

    Ray, thanks for your help. I actually want the number itself to be
    converted to a whole number ie not just a formatted number ie the actual
    number itself won't have any dec decimals.

    Thanks,

    Roger


    "Ray A" <RayA@discussions.microsoft.com> wrote in message
    news:380AEC7B-D3A4-4D56-BD8C-EBF75D90E7D1@microsoft.com...
    > one way;
    > copy the date and then paste special >values
    > HTH
    >
    > "Roger B." wrote:
    >
    >> I have a date in a cell which is in Date format and I would like to
    >> convert
    >> this to a whole number format (ie no decimals in the result) using a
    >> macro.
    >>
    >>
    >>
    >> Any suggestions would be greatly appreciated.
    >>
    >>
    >>
    >> Roger
    >>
    >>
    >>




  4. #4
    Registered User
    Join Date
    09-16-2003
    Location
    Waiau Pa NZ
    Posts
    81
    format as general not as number

    the macro instruction would be

    Range("A12").Select
    Selection.NumberFormat = "General"
    Greetings from New Zealand
    Bill Kuunders

+ 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