Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Defining Ranges | Excel Worksheet Functions | |||
Automatically Defining Ranges | Excel Programming | |||
Re-defining Ranges in VBA | Excel Programming | |||
Defining ranges in VB code | Excel Programming | |||
Defining Ranges | Excel Programming |