Thread
:
Newbie question defining ranges
View Single Post
#
2
Posted to microsoft.public.excel.programming
Don Guillett
external usenet poster
Posts: 10,124
Newbie question defining ranges
use range("a" & i) or
cells(1,i)
--
Don Guillett
Microsoft MVP Excel
SalesAid Software
"ElPresidente" wrote in message
...
For i = 1 To 17
Set uRange = Sheet1.Range(Cells(1, i), Cells(19, i))
uRange.AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Sheet3.Cells(1, i), Unique:=True
Next i
Can someone explain why this code works if I write it as above, but if
I change the CopyToRange to Sheet3.Range(Cells(1,i)) I just get
errors?
Reply With Quote
Don Guillett
View Public Profile
Find all posts by Don Guillett