|
-
Oct 9th, 2005, 09:20 PM
#1
Thread Starter
Lively Member
how to change excel column cells format to "Date" time in runtime.
Hi guys,
i am facing a problem here.
i have a microsoft access program, which will import excel spreadsheet data into database.
however, before i import the spreadsheet, i need to change a column cells format.
i.e i have a worksheet, let assume, WS1
in WS1, the first column, Column A cells format is "Custom"
i want to change it to "Date" format,
how can i do that?
please advice.
Last edited by kkc; Oct 10th, 2005 at 05:25 AM.
Reason: resolved
-
Oct 10th, 2005, 04:12 AM
#2
Lively Member
Re: how to change excel column cells format to "Date" time in runtime.
Try this:
VB Code:
WS1.ActiveSheet.Range("A:A").NumberFormat = "dd/mm/yy hh:MM:ss;@"
Pieter
-
Oct 10th, 2005, 05:24 AM
#3
Thread Starter
Lively Member
Re: how to change excel column cells format to "Date" time in runtime.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|