Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Algin left the value in export excel?
Message
From
23/04/2011 03:23:13
 
 
To
19/04/2011 06:16:32
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01507788
Message ID:
01508186
Views:
52
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform