|
Mainプロシジャーだけちょっと訂正です。
'=====================================================
Sub main()
Dim a1_pr As pr_pack
Dim a2_pr As pr_pack
Dim myPrName(1 To 7) As att
myPrName(1) = set_att(Array(2), Array("numberFormatLocal"))
myPrName(2) = set_att(Array(2), Array("value"))
myPrName(3) = set_att(Array(8, 2), Array("Interior", "colorindex"))
myPrName(4) = set_att(Array(8, 2), Array("Interior", "PatternColorIndex"))
myPrName(5) = set_att(Array(8, 2), Array("Font", "colorindex"))
myPrName(6) = set_att(Array(2), Array("Style"))
myPrName(7) = set_att(Array(8, 8, 8, 1, 2), Array("comment", "shape", "textframe", "characters", "text"))
a1_pr = get_property(Range("a1"), myPrName())
a2_pr = get_property(Range("a2"), myPrName())
ret = 0
For i = 1 To 7
If a1_pr.ret(i) = a2_pr.ret(i) Then
If a1_pr.ret(i) = True Then
If a1_pr.ans(i) <> a2_pr.ans(i) Then
MsgBox Join(myPrName(i).p_name(), ".") & "が一致しません"
ret = 1
End If
End If
Else
MsgBox Join(myPrName(i).p_name(), ".") & "が一致しません"
ret = 1
End If
Next
If ret = 0 Then
MsgBox "比較したプロパティは一致します"
End If
End Sub
|
|