Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 60
Default Two dinamic graphs in a worksheet

Hello,

In a worksheet I have two dinamic graphs and its data.
Unfortunately the second graph is not working properly.

I think that the problem is with the syntax of the macro of the second
graph, probably with the (AutoFilter Field:=1)???? because the macro should
only select the cells with the data but instead it is picking up also the
empty cells in the column and eventlually the graph is incorrect.

Please see below the macros

Really appreciate if you can help to fix this.

Thank you ! Arno


MACRO OF THE FIRST DINAMIC GRAPH - THIS ONE WORKS OK!
Sub SelData()
Columns("T:U").Select
Selection.ClearContents
Range("N1:O10000").Select
ActiveSheet.Range("$N$1:$O$10000").AutoFilter Field:=1, Criteria1:="<"
Range("N1:O10000").Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Range("T1").Select
ActiveSheet.Paste
ActiveSheet.Range("$N$1:$O$10000").AutoFilter Field:=1
End Sub

MACRO OF THE 2ND GRAPH###THIS ONE IS NOT WORKING :)
Sub SelDataManuf()
Columns("AD:AE").Select
Selection.ClearContents
Range("AA1:AB10000").Select
ActiveSheet.Range("$AA$1:$AB$10000").AutoFilter Field:=1, Criteria1:="<"
Range("AA1:AB10000").Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
Range("AD1").Select
ActiveSheet.Paste
ActiveSheet.Range("$AA$1:$AB$10000").AutoFilter Field:=1
End Sub


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
copying worksheet including graphs to new worksheet leif Excel Discussion (Misc queries) 9 March 7th 10 04:03 AM
Dinamic Validations Lists Angeles Excel Programming 0 November 22nd 07 09:32 PM
graphs from worksheet teacherpaul via OfficeKB.com Charts and Charting in Excel 0 April 25th 07 12:27 PM
Dinamic sheet in web format Marcos Charts and Charting in Excel 0 March 10th 06 06:34 PM
countif, dinamic criteria Stan Altshuller Excel Worksheet Functions 2 December 8th 04 08:22 PM


All times are GMT +1. The time now is 01:23 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"