troubleshooting Question

VB.Net - Excel Automation Set Column Width on Headings

Avatar of Jimbo99999
Jimbo99999Flag for United States of America asked on
Microsoft ExcelVisual Basic.NET
4 Comments2 Solutions1429 ViewsLast Modified:
Good Day Experts!

Making good progress on my little project and am working on the export to Excel from VB.net.  There really isn't too much data that needs to get pushed across but a formatting issue is troubling me.

I put 8 known column headings in cells 3,1 to 3,8.  Now I need to be able to do the equivalent in code of going to the worksheet and doublicking in between column A and B B and C and so on to get the columns to be as wide as the text that I am putting in 3,1 to 3,8.

How do I do this programatically?

Thanks,
jimbo99999
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros