On Fri, 24 Oct 2003 07:05:15 -0700, Martin <martinvalley RemoveThis @comcast.net> wrote:
¤ On Fri, 24 Oct 2003 08:58:33 -0500, Paul Clement
¤ <UseAdddressAtEndofMessage RemoveThis @swspectrum.com> wrote:
¤
¤ >
¤ >The creation of user defined properties using CreateProperty is only supported by Jet (Access)
¤ >database types.
¤ >
¤
¤ Paul -
¤
¤ Thanks. I had been told that it could be done but I sure couldn't get
¤ it to work.
¤
¤ Do you know if there is any way I can set the format for the DateTime
¤ field?
¤
¤ In Excel itself, it's a simple matter of specifying the desired format
¤ but I would like to do it from within my program so that when the user
¤ eventually opens the .XLS file, the data will be properly displayed.
The only method I'm aware of is to use automation with Excel. You may be able to force it using the
Format function but I haven't tried it and I don't know how you are placing data in the cells.
Paul ~~~ pclement RemoveThis @ameritech.net
Microsoft MVP (Visual Basic)
>> Stay informed about: Create property in an Excel file?