carlleese24
Board Regular
- Joined
- Mar 15, 2005
- Messages
- 108
Hi
I have a code here that basically searches a value and puts a figure in the next few cells
The error message points to this bit of the code .cells and says
compile error:
invalid or unqualified reference
Any help on this would appreciated
I have a code here that basically searches a value and puts a figure in the next few cells
Code:
For Each Name In Worksheets("rota").Range(.Cells(1, Sheets("Swipe_Data").Range("b16").Value), .Cells(1000, Sheets("Swipe_Data").Range("b16").Value)).SpecialCells(xlCellTypeConstants, 1)
With ActiveCell.Offset(0, 1)
Set c = .Find(Name.Value, LookIn:=xlValues)
If Not c Is Nothing Then
Name.Offset(0, Sheets("Swipe_Data").Range("a16")).Value = c.Offset(0, 4).Value
End If
End With
Next Name
The error message points to this bit of the code .cells and says
compile error:
invalid or unqualified reference
Any help on this would appreciated