Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Create Multiple Filter and graph data

I tried to do a filter and then copy the filtered data from another sheet to create a chart. Can you please give me an advice or teach me on how to do that?

Any help would be greatly appreciated.

Thanks,

Jim
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default Create Multiple Filter and graph data

Hi Jim

This macro will filter sheet1, and copy the filtered range to sheet2. The
filter I applied is non-empty cells in column B.

Sub CopyFilteredData()
Dim FilterRange As Range

Sheets("Sheet1").Activate
LastRow = Range("A3").End(xlDown).Row
Set FilterRange = Range("A2", Cells(LastRow, "C"))
FilterRange.Select
Selection.AutoFilter field:=2, Criteria1:="<"
Selection.copy Destination:=Worksheets("Sheet2").Range("A2")
Selection.AutoFilter
End Sub

Hopes it helps

Regards,
Per

"Jim Sablan" skrev i meddelelsen ...
I tried to do a filter and then copy the filtered data from another sheet
to create a chart. Can you please give me an advice or teach me on how to
do that?

Any help would be greatly appreciated.

Thanks,

Jim


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
Macro to Filter Information in Multiple sheets and Make graph misschanda via OfficeKB.com Excel Worksheet Functions 0 August 24th 07 03:25 PM
Create macro to filter on multiple criteria csdjj021191 Excel Worksheet Functions 7 October 3rd 06 01:52 PM
How do I create an overall graph from Multiple worksheets? Worksheet functions Excel Worksheet Functions 0 June 29th 06 04:25 AM
HOW CAN I CREATE A HISTOGRAM GRAPH FOR MY DATA? NNAMDI Excel Worksheet Functions 1 June 10th 06 08:24 PM
HOW CAN I CREATE A HISTOGRAM GRAPH FOR MY DATA? NNAMDI Excel Worksheet Functions 1 June 10th 06 07:35 PM


All times are GMT +1. The time now is 04:16 PM.

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

About Us

"It's about Microsoft Excel"