How to get Format of a Cell

M

Mili

Hi,
I want to display the format a perticular Cell is
using. i.e. : it may be using Number format, or General
format etcc..

How to display it in a msgbox.

Thanks

Regards

Mili.
 
H

Harald Staff

Hi Mili

If the particular cell happen to be where your cursor is:

Sub test()
MsgBox ActiveCell.NumberFormat
End Sub
 

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