Results 1 to 1 of 1

Filter,Copy and Paste VBA

Threaded View

  1. #1
    Registered User
    Join Date
    08-07-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    62

    Filter,Copy and Paste VBA

    Hi all,

    I have just started doing my first macro, it's basically a macro that filters, copies and pastes. But I have a problem, i get this error and I dont know what to do. Can anyone have a look at it and tell me what I have done wrong? I get this error "application defined or object defined error"
    Thank you,

    Daniel

    Sub requiredchanges()
    Sheets("All customers").Activate
    Rem multiple problems
    ActiveSheet.Range("$A$1:$AQ$11000").AutoFilter Field:=3, Criterial:="TRUE"
    Range("A3", "E3:I3").Select
    Range(Slection, Selection.End(xlDown)).Select
    Selection.Copy
    Sheets("Sheet2").Select
    Range("A4").Select
    Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
    
    End Sub

    Moderator Edit:

    Welcome to the forum, Rompetelo.

    Please notice that [CODE] tags have been added to your post. The forum rules require them so please keep that in mind and add them yourself whenever showing code in any of your future posts. To see instructions for applying them, click on the Forum Rules button at the top of the page and read Rule #3.
    Thanks.
    Last edited by Cutter; 09-24-2012 at 08:09 PM. Reason: Added code tags

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