obtaining the format of text in acell

  • Thread starter Thread starter Sean Farrow
  • Start date Start date
S

Sean Farrow

Hi:
How, through the object model preferably can I obtain the format of text ina
cell?
Any help apreciated.
Sean.
 
Hi Mike, Does this give the format of text, bold, italic etc?
if not how can I do this?
Chers
Sean.
 
Hi Mike, Does this give the format of text, bold, italic etc?
if not how can I do this?
Chers
Sean.

You'd need to loop through the properties in which you are interested:

For example:

Sub GetFormat()
With Range("a1").Font
Debug.Print .Name
Debug.Print .FontStyle
'etc
End With
End Sub


--ron
 

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

Back
Top