+ Reply to Thread
Results 1 to 7 of 7

Pasteing to 2nd Workbook and getting error.

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    62

    Pasteing to 2nd Workbook and getting error.

    I am attempting to paste a range to a 2nd workbook and i am getting an error (Application defined or object-defined error) on highlighted line in code below.
    I am not VBA educated..so any help would be appreciated.

    Please Login or Register  to view this content.
    Last edited by SLIDE1; 10-10-2012 at 02:05 PM.

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Pasteing to 2nd Workbook and getting error.

    Just throwing something out here, but could it be that an XLS file doesn't have 1048576 rows? They only have 65536 rows.

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: Pasteing to 2nd Workbook and getting error.

    It was originaly 65536..didn't work so I changed it hoping it would make a difference. It didn't of course and I forgot to change it back.

  4. #4
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Pasteing to 2nd Workbook and getting error.

    You didn't copy anything to paste!

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    09-25-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: Pasteing to 2nd Workbook and getting error.

    I missed a couple of lines of code in my original post. code is now correct as I tried to run. with no luck.
    Last edited by SLIDE1; 10-08-2012 at 03:15 PM.

  6. #6
    Forum Contributor
    Join Date
    10-08-2010
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    386

    Re: Pasteing to 2nd Workbook and getting error.

    It happens to the best of us brother.

  7. #7
    Registered User
    Join Date
    09-25-2012
    Location
    Dallas, Texas
    MS-Off Ver
    Excel 2013
    Posts
    62

    Re: Pasteing to 2nd Workbook and getting error.

    Bumping in hopes of a suggestion.

+ Reply to Thread

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