Public Sub hello()
Dim arr, r As Long, dArr
arr = Array("brcd", "custseq", "custnm", "apprseq", "apprdt", "apprmatdt", _
"ccy", "appramt", "dsbsseq", "dsbsdt", "dsbsmatdt", "sprd", _
"sprdpst", "dsbsamt", "dsbsccy", "rpmtamt", "intamt", "dsbsbal", _
"dsbsamt2", "rpmtamt2", "intamt2", "subunit", "custstscd", "custtpcd", _
"custtpnm", "custdtltpcd", "custdtltpnm", "ecomist", "ecomistnm", "taxtpcdloc", _
"taxtpcdlocnm", "ofcno", "ofcnm", "pstintamt", "pstintamt2", "buscd", _
"lntpcd", "lnsbtpcd", "lstrpmtdt", "lstintchrgprd", "nxtrpmtschddt", "nxtintschddt", _
"exmtintamt", "exmtintamt2", "finainsttpcd", "finainsttpcdnm", "sicdloc", "province", _
"provincenm", "district", "districtnm", "zipcd", "addr1", "secured", _
"fndrstpcd", "fndrsnm", "exemptint", "exemptinttype", "fndprpstpcd", "fndprpstpcd_code", _
"intrpmtamt", "AQCCDFIN", "intrpmtamt2", "commcd", "commmn", "grpno", _
"trctcd", "trctnm", "BSNSSCLTPCD", "usrid", "usrnm", "acramt", _
"lceqa", "yrdays", "intcmth", "intrpymth", "inttrmmth", "remark")
dArr = [COLOR=#ff0000][SIZE=3][B]Sheet3[/B][/SIZE][/COLOR].Range("A1:BZ1").Value
For r = 1 To UBound(dArr, 2) Step 1
If dArr(1, r) <> arr(r - 1) Then Exit For
Next
If r <= UBound(dArr, 2) Then MsgBox "error at cell " & Cells(1, r).Address Else MsgBox "Good"
End Sub