Results 1 to 6 of 6

Macro takes 20 seconds to run, can anyone please help to make it more efficient?

Threaded View

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    4

    Macro takes 20 seconds to run, can anyone please help to make it more efficient?

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Not Intersect(Target, Range("AB8:AJ21")) Is Nothing Then
    'Application.ScreenUpdating = False
    'Dim mysheet
    'Dim mycell
    On Error Resume Next
    mysheet = ActiveSheet.Name
    mycell = ActiveCell.Address
        Sheets("Myformat").Range("Pay").Copy
       Sheets("Sheet1").Range("AB8").PasteSpecial xlPasteFormats
    'Worksheets("sheet1").Range("AB8").Select
    Sheets(mysheet).Range(mycell).Select
    End If
    'Application.ScreenUpdating = True
     End Sub
    Last edited by FDibbins; 10-31-2013 at 06:44 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro takes approx. 15 seconds to run, how do i reduce run time?
    By galvinpaddy in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 10-25-2012, 07:15 AM
  2. Replies: 2
    Last Post: 10-17-2012, 06:26 AM
  3. My current macro takes 20 minutes + to run. How can this code be made more efficient??!!
    By Mr.Whiskers in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 04-11-2012, 11:02 AM
  4. [SOLVED] macro takes 30+ seconds to do an autofit on only 1 out of the 3 sheets it is autofitting
    By drdavidge in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-13-2006, 03:19 PM
  5. Replies: 1
    Last Post: 07-13-2006, 12:55 PM

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