Closed Thread
Results 1 to 2 of 2

VBA for Match Destination Formatting

  1. #1
    Registered User
    Join Date
    04-21-2017
    Location
    utah
    MS-Off Ver
    2016
    Posts
    2

    VBA for Match Destination Formatting

    I was told the following Macro will allow me to pre-format any column, row, or worksheet to only use Match Destination Formatting when I copy data into my worksheet:

    Please Login or Register  to view this content.
    I was also told I could use any shortcut (Ctrl+v, Ctrl+b, etc.).

    However, none of them work; nothing appears. When I try to "Run" the code is says "run-time error 1004: pastespecial method of range class failed." What am I doing wrong?

    I'm specifically looking to change the preset formatting to Match Destination Formatting for all data copied into it. I would like to use the Ctrl+v shortcut if possible but I'm okay with using another shortcut if needed. Thank you!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,405

    Re: VBA for Match Destination Formatting

    Duplicate of this thread: https://www.excelforum.com/excel-pro...ormatting.html

    Do not open duplicate threads on the same issue. Thread closed.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

Closed Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Match destination formatting for a specific range only
    By 11help11 in forum Excel General
    Replies: 3
    Last Post: 03-21-2017, 08:47 AM
  2. Cgange default paste to match destination formatting
    By Gareth1000 in forum Excel General
    Replies: 1
    Last Post: 12-01-2016, 11:28 AM
  3. Restrict Pasting to Keep Destination Match Formatting Programmatically
    By gibbsa08 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-04-2016, 02:06 AM
  4. 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
  5. [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
  6. [SOLVED] Default to Match Destination Formatting
    By johnph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-13-2012, 09:38 AM
  7. [SOLVED] 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