Results 1 to 6 of 6

Excel 2010 Not able to run my Macro

Threaded View

DWalker10 Excel 2010 Not able to run my... 03-13-2012, 03:25 PM
abousetta Re: Excel 2010 Not able to... 03-13-2012, 04:12 PM
DWalker10 Re: Excel 2010 Not able to... 03-13-2012, 04:52 PM
abousetta Re: Excel 2010 Not able to... 03-13-2012, 05:09 PM
DWalker10 Re: Excel 2010 Not able to... 03-13-2012, 05:15 PM
abousetta Re: Excel 2010 Not able to... 03-13-2012, 05:28 PM
  1. #1
    Registered User
    Join Date
    03-13-2012
    Location
    Boston, MA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Excel 2010 Not able to run my Macro

    We have a number of Macros that were built using Excel 2003 (and ran fine) that are now not able to run using Excel 2010. I'm guessing it is some type of syntax issue, but I haven't been able to find anything specific to this issue online, so that's why I'm here.

    I am receiving the following error on the "Selection.Entirerow.Insert" line:

    "Run-time error '1004': The information cannot be pasted because the Copy area and the paste area are not the same size and shape."

    Essentially we are copying rows from one spreadsheet to another based on certain criteria.

    Dim SiteCol As Range, Cell As Object
    Set SiteCol = Range("B1:B65536")
    For Each Cell In SiteCol
        If Cell.Value Like "MyValue*" Then
        Selection.EntireRow.Copy
        Windows("MacroWorkbook.xls").Activate
        Sheets("Import File").Select
        Range("A65536").End(xlUp).Offset(1, 0).Select
        Selection.EntireRow.Insert
        Application.CutCopyMode = False
        End If
    Next
    Any help is much appreciated!

    Doug Walker
    Last edited by DWalker10; 03-13-2012 at 05:33 PM.

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