Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Help to run faster

Is there a way to do this faster
--
Sheets("2").Select
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet2"
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet3"
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet4"

Sub Sheet2()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
..Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
..End(xlUp).Offset(2, 0)
End With
Sheets("3").Select
Application.ScreenUpdating = False
'Selection.Autofilter

End Sub
Sub Sheet3()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
..Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
..End(xlUp).Offset(1, 0)
End With
Sheets("4").Select
Application.ScreenUpdating = False
'Selection.Autofilter

End Sub
Sub Sheet4()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
..Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
..End(xlUp).Offset(1, 0)
End With
Application.ScreenUpdating = False
End Sub
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help to run faster

You could try copying all the data, then filtering on the composite data and
deleteing all the data you don't want.

--
Regards,
Tom Ogilvy


"Esau" wrote in message
...
Is there a way to do this faster
--
Sheets("2").Select
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet2"
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet3"
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet4"

Sub Sheet2()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(2, 0)
End With
Sheets("3").Select
Application.ScreenUpdating = False
'Selection.Autofilter

End Sub
Sub Sheet3()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End With
Sheets("4").Select
Application.ScreenUpdating = False
'Selection.Autofilter

End Sub
Sub Sheet4()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End With
Application.ScreenUpdating = False
End Sub



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Help to run faster

I copy the filter data from Sheets ("2") Sheets ("3") & Sheets ("4") to Sheets
("Sheet2") Then run a macro to analyze the data - I was hoping there was a
faster way to collect the data to Sheet2

Thanks you for reviewing it

Esau Isaacs


--
Esau


"Tom Ogilvy" wrote:

You could try copying all the data, then filtering on the composite data and
deleteing all the data you don't want.

--
Regards,
Tom Ogilvy


"Esau" wrote in message
...
Is there a way to do this faster
--
Sheets("2").Select
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet2"
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet3"
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet4"

Sub Sheet2()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(2, 0)
End With
Sheets("3").Select
Application.ScreenUpdating = False
'Selection.Autofilter

End Sub
Sub Sheet3()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End With
Sheets("4").Select
Application.ScreenUpdating = False
'Selection.Autofilter

End Sub
Sub Sheet4()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End With
Application.ScreenUpdating = False
End Sub




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Help to run faster

I understood what you are doing. I suggested a change. Seems to me
filtering once is probably going to be faster than filtering 3 times.

--
Regards,
Tom Ogilvy

"Esau" wrote in message
...
I copy the filter data from Sheets ("2") Sheets ("3") & Sheets ("4") to
Sheets
("Sheet2") Then run a macro to analyze the data - I was hoping there was a
faster way to collect the data to Sheet2

Thanks you for reviewing it

Esau Isaacs


--
Esau


"Tom Ogilvy" wrote:

You could try copying all the data, then filtering on the composite data
and
deleteing all the data you don't want.

--
Regards,
Tom Ogilvy


"Esau" wrote in message
...
Is there a way to do this faster
--
Sheets("2").Select
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet2"
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet3"
Selection.AutoFilter Field:=1, Criteria1:="O NARUTAC MAGIC"
Application.Run "PERSONAL.XLS!Sheet4"

Sub Sheet2()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(2, 0)
End With
Sheets("3").Select
Application.ScreenUpdating = False
'Selection.Autofilter

End Sub
Sub Sheet3()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End With
Sheets("4").Select
Application.ScreenUpdating = False
'Selection.Autofilter

End Sub
Sub Sheet4()
'
'
Application.ScreenUpdating = False

With ActiveSheet.AutoFilter.Range
.Offset(1, 0).Resize(.Rows.Count - 1).Copy _
Sheets("Sheet2").Range("B" & Rows.Count) _
.End(xlUp).Offset(1, 0)
End With
Application.ScreenUpdating = False
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
can this be done faster? Frank Excel Discussion (Misc queries) 7 August 9th 07 10:02 PM
Any way to do this faster? RB Smissaert Excel Programming 18 January 15th 06 02:32 PM
Faster way to do this? Ed Excel Programming 1 November 14th 05 04:27 PM
Can faster CPU+larger/faster RAM significantly speed up recalulati jmk_li Excel Discussion (Misc queries) 2 September 28th 05 10:24 AM
Which one is faster? Syed Zeeshan Haider[_4_] Excel Programming 14 December 4th 03 05:28 PM


All times are GMT +1. The time now is 11:22 PM.

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"