+ Reply to Thread
Results 1 to 3 of 3

Copy from one sheet to another

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    3

    Copy from one sheet to another

    So my program copies a spreadsheet over to my main one then is suppose to search the new sheet for certain information then copy and paste it to the original sheet. However I keep getting the Application defined error and it doesnt seem to matter how I want to copy the range or select the range it does not work and I get the error. Any help would be greatly appreciated.

    Please Login or Register  to view this content.
    FYI as soon as I change the range to just a cell it works just fine so I am not sure why the range is not working
    Last edited by xPhenom; 11-21-2014 at 05:45 PM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Copy from one sheet to another

    Hi, xPhenom,

    make sure to fully qualify the path to both Range and Cells used within that range.

    FYI: Row is a VBA Keyword, you should use a different name for the variable.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    Canada
    MS-Off Ver
    Excel 2013
    Posts
    3

    Re: Copy from one sheet to another

    Thanks Holger! Once I fully qualified the path it worked, didnt realize that the Cells keyword needed to be fully qualified within a fully qualified Range keyword.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy specific data from a sheet to temp sheet and copy temp sheet to new workbook
    By ANUARORA in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-18-2015, 11:58 AM
  2. how to copy specific data from a sheet to temp sheet and copy temp sheet toa new workbook?
    By NatashaKapoor in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-18-2014, 09:01 AM
  3. Replies: 1
    Last Post: 06-05-2013, 07:03 AM
  4. Replies: 1
    Last Post: 01-07-2013, 12:23 AM
  5. Replies: 11
    Last Post: 10-14-2012, 01:03 PM

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