• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

Vb.Net - Set Excel Column to Special

Good Day Experts!

I have a bit trouble with exporting my DataGrid to Excel.  When I have issue with values like 2.01E+111 in and Excel spreadsheet I just format the column to "Special" and it displays the correct/full value.  

How do I set this column to "Special" programatically so when I export from VB.Net DataGrid I see the full value?

Thanks for the help,
jimbo99999
0
Jimbo99999
Asked:
Jimbo99999
  • 2
1 Solution
 
Ron MalmsteadInformation Services ManagerCommented:
I would format it as "text", ..and see if that works.

cells.NumberFormat = "@"
0
 
Jimbo99999Author Commented:
Thanks for responding. I currently had it as you have indicated.  Unfortunately, at this moment, I have lost my MainForm.vb  to:

 Error      11      Unable to open module file 'C:\Documents and Settings\...MainForm.vb': System Error &Hc0000006&      

Thanks,
jimbo99999
0
 
Jimbo99999Author Commented:
Thanks, I have it working now.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now