Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Date format in Excel automation
Message
De
21/11/2005 14:54:58
 
 
À
19/11/2005 07:36:28
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01070473
Message ID:
01070894
Vues:
23
>>In Excel automation, how to display date fields in DD/MM/YYYY format. At present it
>>is displayed as MM/DD/YYYY format. thnaks in advance.
>
>You can ask Excel:
>
>Start recording a macro, and give the command - in this case, change the date format. Then, stop recording the macro.
>
>Now, look at the macro; you will see code similar to:
>
>
>Selection.NumberFormat = "dd-mm-yyyy;@"
>
>
>Now apply this to a cell, column, or range, for example:
>
>
>loSheet.Cells(5,4).NumberFormat = "dd-mm-yyyy;@"
>
>
>(Does somebody know what the "@" at the end means?)

"@" usually means the cell is viewed as text, not as a number or whatever.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform