LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 94
Default check the cell format by function or vba code

Give this a try.

Troy

Sub Test_DiagUp()
Dim rngBlock As Range
Dim rngCell As Range

Set rngBlock = Range("A1:G1")

For Each rngCell In rngBlock
If rngCell.Borders(xlDiagonalUp).LineStyle = xlNone Then
MsgBox rngCell.Address & " : xlDiagonalUp = No"
Else
MsgBox rngCell.Address & " : xlDiagonalUp = Yes"
End If
Next rngCell
End Sub


"Joachim" wrote in message
...
Hi,

my system: XL2000/ WIN XP Home

my problem is.
I want to check if in range A1:G1 a cell is formated like this:
I'll hope to find the right words :-)
is a cell stroke through with (FORMAT; CELL;FRAME; from left bottom to
right
top ?)

Is it possible to check this by formular ? or
is there a vba script to check this ?

thanks for any help or information.

best regards Achim




 
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
Have code check cell contents on edit. Andrew Excel Worksheet Functions 1 January 16th 08 04:47 AM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
Check cell contents then format as locked Katherine Excel Programming 3 February 1st 05 12:48 PM
Check cell for data before running code Pat Excel Programming 1 January 12th 05 08:58 PM
Code using Format Function Mike[_40_] Excel Programming 2 January 10th 04 07:00 PM


All times are GMT +1. The time now is 06:37 AM.

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"