• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Looking to make this macro Faster

Code:
Sub STEP14()
Dim wb As Workbook
Dim ws As Worksheet
Set wb = Workbooks.Open("C:\Users\WolfieeeStyle\Desktop\HotStocks\1.xls")
Set ws = wb.Worksheets.Item(1)
With ws
.Range(.Cells(1, 11), .Cells(.Rows.Count, 11).End(xlUp)).Copy .Cells(1, 12)
End With
wb.Save
wb.Close
End Sub
 
Possibly...?
Code:
Sub faster()
    With Workbooks.Open("C:\Users\WolfieeeStyle\Desktop\HotStocks\1.xls").Worksheets(1)
        .Cells(1, 1).CurrentRegion.Copy .Cells(1, 12)
        .Parent.Close savechanges:=True
    End With
End Sub
 
Leonardo1234
You should reread Forum Rules:
 
Back
Top