+ Reply to Thread
Results 1 to 2 of 2

VBA Copy & Paste problem

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

    VBA Copy & Paste problem

    Hi,

    I am in a situation that is driving me nutts.

    I have this code that is supposed to copy values and formats from one file to another.
    with the code, values are pasted fine , but when code tries to paste format, it gives an error
    of "System does not have resources/ pastespecial of range class failed" and then debug message

    Problem is, it was working fine a week ago.

    Also, if I run an older version of the same file , who has the same code and same settings, it would work.
    so i am guessing there is something specifically wrong with the new file that have , but what, I don't know

    Please help

    Here is the code

    Please Login or Register  to view this content.
    Administrative Note:
    • Please see Forum Rule #3 about the proper use of code tags...
    • Added for you this time, but please use them in the future…Thanks.
    Last edited by jeffreybrown; 11-27-2015 at 06:13 PM.

  2. #2
    Forum Contributor mongoose36's Avatar
    Join Date
    06-10-2013
    Location
    Lincoln
    MS-Off Ver
    Excel 2013
    Posts
    389

    Re: VBA Copy & Paste problem

    I'm guessing the first selection.pastespecial command is clearing the copy. Instead of using select and selection try creating variables for example

    Please Login or Register  to view this content.
    If your questions has been answered to your satisfaction please don't forget to do the following:

    Add Reputation ... and ... Mark Thread as Solved

    Thanks,

    Ma 10:8b Freely you have received; freely give.

+ 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. [SOLVED] Excel Macro - Copy & Paste (Font) problem & Delete Last Added Rows problem
    By LennartB in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2015, 06:58 AM
  2. [SOLVED] Copy/paste problem
    By Davzx in forum Excel General
    Replies: 3
    Last Post: 01-28-2014, 12:31 PM
  3. [SOLVED] Copy paste problem?
    By Mike_in_IT in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2013, 08:14 AM
  4. Problem with Copy & Paste
    By Claudeisa in forum Excel General
    Replies: 1
    Last Post: 06-08-2012, 05:40 AM
  5. copy and paste problem
    By njbabay in forum Excel General
    Replies: 1
    Last Post: 05-26-2008, 08:00 AM
  6. Replies: 3
    Last Post: 12-09-2005, 01:20 PM
  7. Replies: 1
    Last Post: 01-04-2005, 06:06 PM

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