Dim rng As Range
Set rng = ActiveSheet.Range("D2")
With rng
Select Case UCase(.Value)
Case "MONDAY"
'Do something,
'
Sheets("24HR").Rows("7:126").Copy Sheets("MON").Range("A7")
Case "TUESDAY"
'Do something,
'
Sheets("24HR").Rows("7:126").Copy Sheets("TUE").Range("A7")
Case "WEDNESDAY"
'Do something,
'
Sheets("24HR").Rows("7:126").Copy Sheets("WED").Range("A7")
End Select
End With
or even
Dim rng As Range
Set rng = ActiveSheet.Range("D2")
With rng
'Do something,
'
Sheets("24HR").Rows("7:126").Copy Sheets(UCase(.Value)).Range("A7")
End With

Signature
---
HTH
Bob
(there's no email, no snail mail, but somewhere should be gmail in my addy)
> Can anybody help explain why the following code does not work?
>
[quoted text clipped - 41 lines]
>
> End With
thomsonpa - 10 Dec 2007 11:21 GMT
Great, many thanks works perfectly..
> Dim rng As Range
>
[quoted text clipped - 75 lines]
> >
> > End With