On Jan 16, 5:53*pm, Leith Ross <Leith.Ross.3m4...@thecodecage.com>
wrote:
> Hello SangelNet,
>
> Provided the worksheet names are "Sheet280" etc., this code will take
> check column "T" of sheet for duplications of whatever the active cell
> contains.
>
> ==================================
> Sub dupcheck()
>
> Dim Dupe As Variant
> Dim ID As Variant
> Dim Wks As Worksheet
>
> For Each ID In Array(280, 283, 284, 285, 286, 287)
> Set Wks = Worksheets("Sheet" & ID)
> Dupe = WorksheetFunction.CountIf(Wks.Columns("A"),
> ActiveCell.Value)
> If Dupe > 0 Then
> MsgBox "Value has already been entered."
> End If
> Next ID
>
> End Sub
> ==================================
>
> --
> Leith Ross
>
> Sincerely,
> Leith Ross
>
> 'The Code Cage' (http://www.thecodecage.com/)
> ------------------------------------------------------------------------
> Leith Ross's Profile:http://www.thecodecage.com/forumz/member.php?userid=75
> View this thread:http://www.thecodecage.com/forumz/sh...ad.php?t=47606
I ran the code. placed it under "this workbook". changed the
corresponding letter for the column, but its not giving me an error
nor a result message.
played around with it for a bit and still, nothing.