+ Reply to Thread
Results 1 to 8 of 8

Macro Which Copies Range and Pastes to Existing Workbook

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    90

    Macro Which Copies Range and Pastes to Existing Workbook

    Hello all,

    I am running this code from an existing workbook, and already have a code to copy the selected range from a different workbook. I want to copy this code and paste it into the sheet named "PRODUCTION" in cell H28.

    The copy code I have is:
    Please Login or Register  to view this content.
    If I am running this from the template workbook I have, can I just use a .Paste to active workbook or would this not work since I have the Workbooks.Open in the Copy code?

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro Which Copies Range and Pastes to Existing Workbook

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    05-28-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    90

    Re: Macro Which Copies Range and Pastes to Existing Workbook

    The following code gives: Type Mismatch error

    Please Login or Register  to view this content.
    Last edited by pynergee; 08-07-2013 at 01:04 PM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro Which Copies Range and Pastes to Existing Workbook

    On which line is the error?

  5. #5
    Registered User
    Join Date
    05-28-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    90

    Re: Macro Which Copies Range and Pastes to Existing Workbook

    It does not give a reference location for this error.
    Last edited by pynergee; 08-08-2013 at 10:38 AM.

  6. #6
    Registered User
    Join Date
    05-28-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    90

    Re: Macro Which Copies Range and Pastes to Existing Workbook

    Any ideas?

  7. #7
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Macro Which Copies Range and Pastes to Existing Workbook

    I don't think it is the problem but you have two error handlers?

    Please Login or Register  to view this content.
    Try removing one.

  8. #8
    Registered User
    Join Date
    05-28-2013
    Location
    CT
    MS-Off Ver
    Excel 2010
    Posts
    90

    Re: Macro Which Copies Range and Pastes to Existing Workbook

    I realized that before, removed it but it still gives the same error.

+ 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. Replies: 1
    Last Post: 07-28-2013, 01:35 PM
  2. Replies: 0
    Last Post: 10-23-2012, 01:50 AM
  3. [SOLVED] Automating a macro that copies and pastes data and pastes 2 rows under the previous one.
    By thebank in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2012, 05:02 PM
  4. Replies: 0
    Last Post: 07-27-2011, 09:48 PM
  5. Marco Copies and Pastes from one workbook to another but changes formatting
    By widodude in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-23-2011, 08:51 AM

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