ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   export cell value - Date Format (https://www.excelbanter.com/excel-programming/332784-export-cell-value-date-format.html)

John

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

Tom Ogilvy

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" wrote in message
...
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




John

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" wrote in message
...
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






All times are GMT +1. The time now is 06:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com