PC Review


Reply
Thread Tools Rate Thread

advanced filternot working in macro

 
 
tina
Guest
Posts: n/a
 
      13th Nov 2009
Hi
A macro with advanced filter is nolonger working the advance filter does not
give any data but if run manually with sames settings it works. Problem
seems to been since upgraded to office 2007 . I recorded a amcro for filter
and ran this and this failed to give data when macro ran but did when recorded
relevant code is
Range("MYCODES").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range _
("I1:I2"), CopyToRange:=Range("K1"), Unique:=False
any Ideas
Thanks Tina
 
Reply With Quote
 
 
 
 
Joel
Guest
Posts: n/a
 
      13th Nov 2009
The ranges are probably referencing the wrong worksheet. The n amed Range is
probably ok, but the criteria range and copyto range are refering the
activeworksheet. the activesheet may be incorrect.

"tina" wrote:

> Hi
> A macro with advanced filter is nolonger working the advance filter does not
> give any data but if run manually with sames settings it works. Problem
> seems to been since upgraded to office 2007 . I recorded a amcro for filter
> and ran this and this failed to give data when macro ran but did when recorded
> relevant code is
> Range("MYCODES").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range _
> ("I1:I2"), CopyToRange:=Range("K1"), Unique:=False
> any Ideas
> Thanks Tina

 
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
Advanced Filter not working correctly in macro =?Utf-8?B?VGFyYSBI?= Microsoft Excel Programming 9 28th Jan 2009 08:06 PM
Very simple Advanced Filter not working in macro Adam Microsoft Excel Programming 4 18th Dec 2008 12:16 PM
Re: Advanced autofilter not working in macro Dave Peterson Microsoft Excel Misc 1 6th Jan 2007 12:30 AM
Re: Advanced autofilter not working in macro Bob Phillips Microsoft Excel Misc 0 5th Jan 2007 09:49 AM
Advanced macro =?Utf-8?B?THVrZQ==?= Microsoft Excel Misc 5 31st Aug 2005 03:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:24 AM.