PC Review


Reply
Thread Tools Rate Thread

Advanced filter in VBA messing with my chart

 
 
Jennifer
Guest
Posts: n/a
 
      14th Oct 2008
Ok let me say i fully understand how to name a range and in the source data
for a chart you use the formula =sheetname!rangename

Problem arrises when my macro that runs an advanced filter with the source
data and add data to the bottom of the range the chart reverts back to it's
initial data source =sheet1!$a$4:$b$15

so even though it accept the named range intitailly once the advanced filter
runs it ommits the named range. I am using 2007 and i never had this
problem in 2003.

What suggestions do you have for me? At the bottom you will see my code.
Thank you!!!!!
--
Thank you,

Jennifer

--
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
''ActiveSheet.Unprotect
'On Error GoTo ws_exit
'Application.EnableEvents = False
'If Target.Row = 3 And Target.Column = 2 Then
''calculate criteria cell in case calculation mode is manual
' Worksheets("TankInventory").Range("ac2:ad2").Calculate
' Worksheets("TankInventory").Range("Inventory_PivotTable") _
' .AdvancedFilter Action:=xlFilterCopy, _
' CriteriaRange:=Sheets("TankInventory").Range("ac1:ad2"), _
' CopyToRange:=Range("a6:b6"), Unique:=False
' Me.Range("B3").Select
'End If
'ws_exit:
' Application.EnableEvents = True
' 'ActiveSheet.Protect
 
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
Re: Back end filter messing with front end Douglas J. Steele Microsoft Access Forms 0 4th Feb 2009 08:42 PM
Back end filter messing with front end M Skabialka Microsoft Access Forms 0 4th Feb 2009 08:38 PM
Unique Filter Code / Advanced Filter Fester Microsoft Excel Discussion 1 30th Oct 2008 05:37 PM
advanced filter won't allow me to filter on bracketed text (-456.2 =?Utf-8?B?THVjaWFub0c=?= Microsoft Excel Misc 2 7th Dec 2004 09:03 AM
automating data/filter /advanced filter copy Frank Microsoft Excel Worksheet Functions 2 7th Jan 2004 10:31 PM


Features
 

Advertising
 

Newsgroups
 


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