Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Algin left the value in export excel?
Message
De
23/04/2011 03:23:13
 
 
À
19/04/2011 06:16:32
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01507788
Message ID:
01508186
Vues:
54
>Hi all,
> i wirte a export excel , but i don't know why if the value is numberic , then it will auto algin right in excel .........
>i try any method but i can't algin left.......... Anyone know how can i do , please ?
>
>
>oRng = Sheet.Range("C1 ","C1")              
>                oRng.HorizontalAlignment = 1
>                oRng.VerticalAlignment = 1
>                oRng.EntireColumn.AutoFit()
>
>  Sheet.Range("C1").Value = "5"
>
Prepend a single quote to the value
>  Sheet.Range("C1").Value = "'" +  "5"
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform