Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default determine how a cell is formatted

Hi:
How can I determine how a cell or range is formatted.
I'm thinking things that could afect the cell.value property, i.e decimal
places etc.
Chers
Sean.


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default determine how a cell is formatted

Use the NumberFormat property...

MsgBox Range("A1").NumberFormat

--
Rick (MVP - Excel)


"Sean Farrow" wrote in message
...
Hi:
How can I determine how a cell or range is formatted.
I'm thinking things that could afect the cell.value property, i.e decimal
places etc.
Chers
Sean.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,058
Default determine how a cell is formatted

Sub whatformat()
MsgBox (ActiveCell.NumberFormat)
End Sub
--
Gary''s Student - gsnu2007k

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
linking a text formatted cell to a formula cell lacy Excel Discussion (Misc queries) 1 May 22nd 09 03:19 PM
Why do I get this ###### instead of 11:00 p.m. in formatted cell? new user New Users to Excel 3 September 15th 08 09:05 PM
Formatted Cell abiamonte Excel Discussion (Misc queries) 1 July 29th 08 10:04 PM
Converting 'General' formatted cells to Text formatted cell using. Zahid Khan Excel Worksheet Functions 1 March 12th 05 07:13 PM
How can you determine if a cell is formatted as a percent? quartz Excel Programming 3 April 21st 04 03:01 PM


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

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

About Us

"It's about Microsoft Excel"