Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello, I am using VBA in Excel XP with Win 2000
I need a VBA method to determine if a cell is formatted as a percentage Could someone please post back example code to do this? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Quartz,
I need a VBA method to determine if a cell is formatted as a percentage. If InStr(ActiveCell.NumberFormat, "%") Then MsgBox "Percentage" Else MsgBox "Other" End If Regards, Jan Karel Pieterse Excel MVP www.jkp-ads.com |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
MsgBox ActiveCell.NumberFormat = "0.00%"
HTH Regards Pascal "quartz" a écrit dans le message de news: ... Hello, I am using VBA in Excel XP with Win 2000. I need a VBA method to determine if a cell is formatted as a percentage. Could someone please post back example code to do this? |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Jan! I never thought of using "InStr" like that :-
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Using date format in the cells how determine percent complete | Excel Worksheet Functions | |||
Calculating percent off a single cell | Excel Discussion (Misc queries) | |||
remove percent symbol on percentage formatted cells in excel | Excel Discussion (Misc queries) | |||
Formatting a number to look like a Percent without a percent sign | Excel Discussion (Misc queries) | |||
Converting 'General' formatted cells to Text formatted cell using. | Excel Worksheet Functions |