+ Reply to Thread
Results 1 to 3 of 3

export cell value - Date Format

  1. #1
    John
    Guest

    export cell value - Date Format

    I am exporting a cell value from excel to another application with the
    following code...

    Range("t6").Value = Format(Range("t6").Value, "MM/DD/YY")
    SendKeys Range("t6").Value

    but when the date is imported to the application it types in the text as
    "MM/DD/YYYY"

    What would help?

    thanks in advance

  2. #2
    Tom Ogilvy
    Guest

    Re: export cell value - Date Format

    skip the first line. Just use Format directly

    SendKeys Format(Range("t6").Value, "MM/DD/YY")

    --
    Regards,
    Tom Ogilvy

    "John" <[email protected]> wrote in message
    news:[email protected]...
    > I am exporting a cell value from excel to another application with the
    > following code...
    >
    > Range("t6").Value = Format(Range("t6").Value, "MM/DD/YY")
    > SendKeys Range("t6").Value
    >
    > but when the date is imported to the application it types in the text as
    > "MM/DD/YYYY"
    >
    > What would help?
    >
    > thanks in advance




  3. #3
    John
    Guest

    Re: export cell value - Date Format

    thank you sir

    "Tom Ogilvy" wrote:

    > skip the first line. Just use Format directly
    >
    > SendKeys Format(Range("t6").Value, "MM/DD/YY")
    >
    > --
    > Regards,
    > Tom Ogilvy
    >
    > "John" <[email protected]> wrote in message
    > news:[email protected]...
    > > I am exporting a cell value from excel to another application with the
    > > following code...
    > >
    > > Range("t6").Value = Format(Range("t6").Value, "MM/DD/YY")
    > > SendKeys Range("t6").Value
    > >
    > > but when the date is imported to the application it types in the text as
    > > "MM/DD/YYYY"
    > >
    > > What would help?
    > >
    > > thanks in advance

    >
    >
    >


+ 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