+ Reply to Thread
Results 1 to 4 of 4

My Code Not Pasting

  1. #1
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    My Code Not Pasting

    I have the following code to name a range and then copy and paste to the variable name. All is ok up until the paste.
    Can someone please tell me how I'm going wrong.
    Thanks,
    Ken Mc
    Please Login or Register  to view this content.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: My Code Not Pasting

    Is the selected range a valid range?
    Your copying over 2 million cells!
    deactivate the On Error to trouble shoot.
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    01-12-2014
    Location
    Plano, Tx
    MS-Off Ver
    Excel 2007
    Posts
    54

    Re: My Code Not Pasting

    Thanks, removed On Error. Range is a valid named range in my main workbook.
    Still not working.

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: My Code Not Pasting

    Well change the following line

    Please Login or Register  to view this content.
    or
    Please Login or Register  to view this content.
    Go though it step by step and troubleshoot

+ 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. Code for pasting help
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-10-2015, 02:07 PM
  2. [SOLVED] Code not pasting values
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-04-2014, 10:51 AM
  3. Typing vs Pasting Code
    By GaPhilthy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-30-2013, 03:57 AM
  4. Code Pasting Issue
    By dreicer_Jarr in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-13-2010, 09:32 PM
  5. Looping Code for Pasting
    By smlaff01 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-12-2008, 02:13 PM
  6. Pasting formula from code
    By Gus80 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-25-2008, 10:11 PM
  7. [SOLVED] Help in Pasting from 1 workbook to another in code
    By Gary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-09-2006, 04:45 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