Results 1 to 9 of 9

Macro running slow

Threaded View

rhudgins Macro running slow 07-13-2010, 10:00 PM
JBeaucaire Re: Macro running slow 07-13-2010, 11:21 PM
rylo Re: Macro running slow 07-13-2010, 11:25 PM
JBeaucaire Re: Macro running slow 07-13-2010, 11:41 PM
rhudgins Re: Macro running slow 07-14-2010, 08:58 AM
JBeaucaire Re: Macro running slow 07-14-2010, 10:52 AM
rhudgins Re: Macro running slow 07-14-2010, 01:27 PM
JBeaucaire Re: Macro running slow 07-14-2010, 01:40 PM
rhudgins Re: Macro running slow 07-14-2010, 01:58 PM
  1. #1
    Forum Contributor
    Join Date
    01-05-2010
    Location
    New York
    MS-Off Ver
    Excel 2016
    Posts
    747

    Macro running slow

    I have the following macro that runs very slow. Is there a way to speed it up? Any help would be great. Thanks.

    
    Sub FilterForChanges()
        TargetRow = 2
        SourceRow = 1
        SourceColumn = "AE"
        
        Do
    here:
            If (IsError(ActiveCell.Value)) Then
                SourceRow = SourceRow + 1
                SourceCell = SourceColumn & SourceRow
                Range(SourceCell).Select
                GoTo here
            End If
            
            If (ActiveCell.Value = 1) Then
                Range(Selection, Cells(ActiveCell.Row, 1)).Select
                Selection.Copy
                Sheets("Changes").Select
                NextCell = "A" & TargetRow
                TargetRow = TargetRow + 1
                Range(NextCell).Select
                Selection.PasteSpecial Paste:=xlPasteValuesAndNumberFormats, Operation:=xlNone, SkipBlanks _
                :=False, Transpose:=False
                Sheets("Today").Select
            End If
            SourceRow = SourceRow + 1
            SourceCell = SourceColumn & SourceRow
            Range(SourceCell).Select
            If (IsError(ActiveCell.Value) = True) Then
                GoTo here
            End If
        Loop Until ActiveCell.Value = "STOP"
        
        
       
    End Sub
    Attached Files Attached Files
    Last edited by rhudgins; 07-14-2010 at 01:58 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1