View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
BrianR BrianR is offline
external usenet poster
 
Posts: 13
Default Unique Value by Advance Filter

Is there anyway to replace the "S5" with a variable?

CopyToRange:=Sheets(mysheet).Range("S5")

BrianR


"Dave Peterson" wrote:

dim DestCell as range
.....
set destcell = sheets(mysheet).range("s5")
.....
...copytorange:=destcell

BrianR wrote:

Is there anyway to replace the "S5" with a variable?

CopyToRange:=Sheets(mysheet).Range("S5")

BrianR

"Dave Peterson" wrote:

I think you'll need to use a range. But you could pick up that range and put it
into an array.

wrote:

Can I store the result of unique value by using advanced filter in VBA?

Sheets(mysheet).Range(myR).AdvancedFilter Action:=xlFilterCopy,
CriteriaRange:=Sheets(mysheet).Range( _
myR), CopyToRange:=Sheets(mysheet).Range("S5"), Unique:=True

Instead of CopytoRange:=<, how can store in to variable?

Thanks

Rgds
BeerSA

--

Dave Peterson


--

Dave Peterson