+ Reply to Thread
Results 1 to 4 of 4

Restrict Pasting to Keep Destination Match Formatting Programmatically

  1. #1
    Registered User
    Join Date
    12-13-2014
    Location
    Boston, MA
    MS-Off Ver
    MS Office 2013
    Posts
    53

    Restrict Pasting to Keep Destination Match Formatting Programmatically

    Hey guys,

    I'm trying to restrict pasting to keep destination formatting however I'm running into a 1004 error. I've tried several different methods including a macro shortcut to paste using xlPastValues with a ctrl + v shortcut. I've also used the following code to no avail. Anyone know a workaround?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Restrict Pasting to Keep Destination Match Formatting Programmatically

    Where is your range Copy?

  3. #3
    Registered User
    Join Date
    12-13-2014
    Location
    Boston, MA
    MS-Off Ver
    MS Office 2013
    Posts
    53

    Re: Restrict Pasting to Keep Destination Match Formatting Programmatically

    The range is copied from an intranet source so it is kept in clipboard. It has five columns and dynamic rows.

  4. #4
    Registered User
    Join Date
    12-13-2014
    Location
    Boston, MA
    MS-Off Ver
    MS Office 2013
    Posts
    53

    Re: Restrict Pasting to Keep Destination Match Formatting Programmatically

    Figured it out by recording a macro and using the following code:

    Please Login or Register  to view this content.

+ 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. How to set key for 'Match Destination Formatting'?
    By LesliePrabakar in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-18-2016, 03:58 AM
  2. [SOLVED] How to set key for 'Match Destination Formatting'?
    By LesliePrabakar in forum Excel General
    Replies: 7
    Last Post: 07-16-2016, 10:16 AM
  3. pasting cell values matching destination formatting
    By vientito in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2014, 06:58 PM
  4. Replies: 0
    Last Post: 03-05-2013, 07:34 PM
  5. [SOLVED] Default to Match Destination Formatting
    By johnph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2012, 09:38 AM
  6. Replies: 1
    Last Post: 06-20-2006, 02:45 AM
  7. Automatically match destination formatting?
    By Nuttysmallbar in forum Excel General
    Replies: 2
    Last Post: 06-09-2005, 01:05 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