Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Date Error in Excel

Status
Not open for further replies.

Rougy

Programmer
Oct 15, 2001
249
US
I have a macro that uses the

Variable = Format(Variable, "mm/dd/yyyy")

function, but for some reason it's not working on the user's computer.

Anybody know the add-in or whatever that I need to install on the user's computer?

Thanks!

Rougy
 
Hi,
Try this...

MyDateString = Format(DateVariable, "MM/DD/YYYY")

Hope this helps :) Skip,
metzgsk@voughtaircraft.com
 
Thecode you posted should work - could you say eactly in which way it fails to work. Do you get an incorrect value or an error message ?

A.C.
 
Hi everyone,

Thanks for the posts.

Turns out there was an ActiveX library being referenced that was missing on the client's computer.

All I had to do was remove the reference and everything started working fine again.

Thanks.

Rougy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top