+ Reply to Thread
Results 1 to 3 of 3

Paste Special Values and Formats

Hybrid View

  1. #1
    Registered User
    Join Date
    07-21-2009
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    12

    Paste Special Values and Formats

    Hi,

    I'm using the following bit of code:

    .PasteSpecial Paste:=xlPasteValues

    to ask a macro to Paste Special (Values) - but how would I ask it to Paste Special (Formats) as well?

    Many Thanks
    Rob

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Paste Special Values and Formats

    .PasteSpecial(xlPasteValuesAndNumberFormats)
    Or follow the paste values with another line of code to paste formats

    .PasteSpecial(xlPasteFormats)

  3. #3
    Registered User
    Join Date
    07-21-2009
    Location
    Leeds
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Paste Special Values and Formats

    Brilliant - thanks very much for solving that for me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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