export cell value - Date Format

G

Guest

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
 
T

Tom Ogilvy

skip the first line. Just use Format directly

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

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

Top