+ Reply to Thread
Results 1 to 6 of 6

Excel 2010 Not able to run my Macro

Hybrid View

  1. #1
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Excel 2010 Not able to run my Macro

    Maybe try this revised version (not tested):

    Dim SiteCol As Range, Cell As Object
    Set SiteCol = Range("B1:B" & Range("B" & Rows. Count).End(xlUp).Row)
    For Each Cell In SiteCol
        If Cell.Value Like "MyValue*" Then
            Cell.EntireRow.Copy
            Windows("MacroWorkbook.xls").Activate
            Sheets("Import File").Select
            Range("A"& Rows.Count).End(xlUp).Offset(1, 0).Paste
        End If
    Next
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  2. #2
    Registered User
    Join Date
    03-13-2012
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Excel 2010 Not able to run my Macro

    "Run-time error '438': Object doesn't support this property or method"

    on this line:

    Range("A" & Rows.Count).End(xlUp).Offset(1, 0).Paste

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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