|
-
Aug 27th, 2003, 05:09 AM
#1
Thread Starter
Member
Format cel in Excel
Hi,
When I retrieve a date type field from SQLServer and put it into Excel via VB it formats it in the number format. Anyone know the code to format it?
-
Aug 27th, 2003, 05:25 AM
#2
It all depends on how you put it into Excel...
the easiest way is to put a single quote ( ' ) in front of the cell text, as Excel will treat it as text and not attempt to format it.
-
Aug 27th, 2003, 05:28 AM
#3
Fanatic Member
As said here before many times, if you're working with Excel and are not sure how to code something, start by recording a macro while manually doing what you want done [in your case formatting a cell]. Then just edit the macro to see the code for how it is done.
Do canibals not eat clowns because they taste funny? 
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
|