Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default obtaining the format of text in acell


Hi:
How, through the object model preferably can I obtain the format of text ina
cell?
Any help apreciated.
Sean.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default obtaining the format of text in acell


Hi,

Maybe this

GetFormat = ActiveCell.NumberFormat

Mike

"Sean Farrow" wrote:

Hi:
How, through the object model preferably can I obtain the format of text ina
cell?
Any help apreciated.
Sean.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default obtaining the format of text in acell


Hi Mike, Does this give the format of text, bold, italic etc?
if not how can I do this?
Chers
Sean.
"Mike H" wrote in message
...
Hi,

Maybe this

GetFormat = ActiveCell.NumberFormat

Mike

"Sean Farrow" wrote:

Hi:
How, through the object model preferably can I obtain the format of text
ina
cell?
Any help apreciated.
Sean.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default obtaining the format of text in acell


On Tue, 9 Dec 2008 19:40:46 -0000, "Sean Farrow"
wrote:

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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
obtaining data in text form from a table Chau Excel Worksheet Functions 1 February 24th 10 12:24 AM
Help obtaining value of defined names when concatenating text with formula mbeauchamp Excel Worksheet Functions 3 June 8th 09 06:08 PM
Need help with converting CUSTOM format/TEXT format to DATE format Deo Cleto Excel Worksheet Functions 6 June 2nd 09 08:14 PM
Obtaining min and max Ed Excel Programming 4 August 3rd 06 04:08 PM
how to format excel format to text format with separator "|" in s. azlan New Users to Excel 1 January 31st 05 12:57 PM


All times are GMT +1. The time now is 12:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"