Change the Data Type

S

Selv

Currently, I am working on an application that opens an Excel spreadsheets
and populates it with data. However, I have been unable to find any
documentation on how to change the data type in a Cell or range. I would
like to change a cell from "General" to "Percentage" data type format from
within the VB application.

An example of the other api funcation I am using which work correctly is:

ExApp.Worksheets("Sheet1").Range("A1").Bold = True

Unfortunately, I cannot find the property name for data type, which likely
replaces "Bold".

Any help would be appreciated.

Thanks
 
R

Rod Gill

It should be Font.Bold=True. You will also get more help in the Excel vba
newsgroup: this one is dedicated to MS Project.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top