I need help formatting a cell in Excel from my VB.Net application

Posted on 2011-05-02
Medium Priority
Last Modified: 2012-05-11
Hi Experts,
I have a VB.Net application and I need to put a string value in an Excel cell.  The string has two words in it.  I have to put the first word in Size 22 Arial font and the second half of the string in Size 10 Arial font.  I cannot put each word in a separate cell.  They have to be in the same cell.  How can I do this?  How can I apply this type of formatting?

Below is some sample code of how i put the string in Excel from my vb.net app:

objWkB.ActiveSheet.Cells(intRows, 1).Value = arrStorage(intCounter, 0)

thank you

Question by:mainrotor
1 Comment
LVL 83

Accepted Solution

CodeCruiser earned 2000 total points
ID: 35508183
Once you know the start index and length of the word, you can use the Range.Characters


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Integration Management Part 2
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question