Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 385
Default Advanced filter in VBA messing with my chart

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").Calcu late
' Worksheets("TankInventory").Range("Inventory_Pivot Table") _
' .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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Filter - filter rows < jaws4518 Excel Discussion (Misc queries) 3 November 1st 06 05:48 PM
Why won't advanced filter return filter results? jaws4518 Excel Worksheet Functions 5 September 12th 06 06:11 PM
How do I use advanced filter to filter for blank cells? Monique Excel Discussion (Misc queries) 2 March 21st 06 06:43 PM
"Criteria Range" in the "Data/Filter/Advanced Filter" to select Du TC Excel Worksheet Functions 1 May 12th 05 02:06 AM
advanced filter won't allow me to filter on bracketed text (-456.2 LucianoG Excel Discussion (Misc queries) 1 December 6th 04 08:38 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"