PC Review


Reply
Thread Tools Rate Thread

advancedfilter action

 
 
Nena
Guest
Posts: n/a
 
      16th Aug 2007
My goal is to autofilter the data in Column C Sheet 1 and have the
results placed in Column A Sheet 2 but it is not working, what am I
doing wrong?

Sheet1("C:C").AdvancedFilter
Action:=xlFilterCopy,Sheet1:=Range("C:C"),
CopyToRange:= Sheet2.Range(_"A6"),Unique:=True

Thanks in advance.

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      16th Aug 2007
Untested

Sheet1("C:C").AdvancedFilter _
Action:=xlFilterCopy, _
CopyToRange:=Sheet2.Range("A6"), _
Unique:=True


--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Nena" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> My goal is to autofilter the data in Column C Sheet 1 and have the
> results placed in Column A Sheet 2 but it is not working, what am I
> doing wrong?
>
> Sheet1("C:C").AdvancedFilter
> Action:=xlFilterCopy,Sheet1:=Range("C:C"),
> CopyToRange:= Sheet2.Range(_"A6"),Unique:=True
>
> Thanks in advance.
>



 
Reply With Quote
 
Nena
Guest
Posts: n/a
 
      16th Aug 2007
Thanks, I'll give it a try.


On Aug 16, 12:12 pm, "Bob Phillips" <bob....@somewhere.com> wrote:
> Untested
>
> Sheet1("C:C").AdvancedFilter _
> Action:=xlFilterCopy, _
> CopyToRange:=Sheet2.Range("A6"), _
> Unique:=True
>
> --
> HTH
>
> Bob
>
> (there's no email, no snail mail, but somewhere should be gmail in my addy)
>
> "Nena" <ordonezs...@gmail.com> wrote in message
>
> news:(E-Mail Removed)...
>
>
>
> > My goal is to autofilter the data in Column C Sheet 1 and have the
> > results placed in Column A Sheet 2 but it is not working, what am I
> > doing wrong?

>
> > Sheet1("C:C").AdvancedFilter
> > Action:=xlFilterCopy,Sheet1:=Range("C:C"),
> > CopyToRange:= Sheet2.Range(_"A6"),Unique:=True

>
> > Thanks in advance.- Hide quoted text -

>
> - Show quoted text -



 
Reply With Quote
 
=?Utf-8?B?UHJhbmF2IFZhaWR5YQ==?=
Guest
Posts: n/a
 
      17th Aug 2007
By Excel design you can apply the advanced filter on the same worksheet only.
The best option is set the target location somewhere on the same worksheet
and then copy the data from this location to Sheet2.

In short, your code will never execute if you try to apply advanced filter
with unique records on different worksheet.
--
Pranav Vaidya
VBA Developer
PN, MH-India
If you think my answer is useful, please rate this post as an ANSWER!!


"Nena" wrote:

> My goal is to autofilter the data in Column C Sheet 1 and have the
> results placed in Column A Sheet 2 but it is not working, what am I
> doing wrong?
>
> Sheet1("C:C").AdvancedFilter
> Action:=xlFilterCopy,Sheet1:=Range("C:C"),
> CopyToRange:= Sheet2.Range(_"A6"),Unique:=True
>
> Thanks in advance.
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AdvancedFilter VBA Sandy Microsoft Excel Discussion 10 14th Feb 2008 06:10 PM
Advancedfilter =?Utf-8?B?cmFt?= Microsoft Excel Programming 1 30th Dec 2005 02:18 AM
AdvancedFilter with VBA newToExcel Microsoft Excel Programming 2 30th Sep 2005 05:20 PM
AdvancedFilter in VB loopy Microsoft Excel Programming 1 22nd Jun 2005 03:24 PM
VBA - AdvancedFilter Ben Microsoft Excel Discussion 2 24th Feb 2004 10:43 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:49 AM.