Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

If Function, looking for formats in values

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ManBoy86 - 18 Jun 2007 23:10 GMT
How would I write an IF function to check to see if a cell is in Italics and
if it is make another cell = 0

IF(A1???, B1=0)  Anyone know what to put where the ?s are?

Thanks.
Gary''s Student - 18 Jun 2007 23:42 GMT
Try this small macro:

Sub routine()
If Range("A1").Font.FontStyle = "Italic" Then
   Range("B1").Value = 0
End If
End Sub

Signature

Gary''s Student - gsnu200731

> How would I write an IF function to check to see if a cell is in Italics and
> if it is make another cell = 0
>
> IF(A1???, B1=0)  Anyone know what to put where the ?s are?
>
> Thanks.
Jovan Timotijevic - 19 Jun 2007 01:12 GMT
Or try this:

Function IsItalic(mCell As Range) As Boolean
   IsItalic = mCell.Font.Italic
End Function

And then type in B1:

=IF(IsItalic(A1),0,"Not italic in A1")

> How would I write an IF function to check to see if a cell is in Italics and
> if it is make another cell = 0
>
> IF(A1???, B1=0)  Anyone know what to put where the ?s are?
>
> Thanks.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.