i am trying to return a message if any cells in a given range are blank. If i declare the range i.e.
Set OrderRng = [C1: C41]
it works fine, but if i declare it as such;
Set OrderRng = Range("c1:" & ActiveSheet.Range("c65536"). End(xlUp).Address).Select`
It does not work.
I know the second argument range is declared correctly as it always highlights the correct cells.
My entire code looks like this;
> Sub BlankCell() Dim OrderRng As Range On Error Resume Next
>
> Set OrderRng = Range("c1:" & ActiveSheet.Range("c65536").End(xlUp).Address).Select
>
> ' Set OrderRng = [C1: C41] ' Rm'd for testing
>
> Set OrderRng = OrderRng.SpecialCells(xlCellTypeBlanks)
>
> If Err = 0 Then MsgBox "An Order ID is missing on one of your entries,
> please amend then try again" End If End Sub
What am i doing wrong, i know it will be obvious, but not to me.
Many thanks