+ Reply to Thread
Results 1 to 5 of 5

Copy paste only the format and formulas not values

  1. #1
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2003
    Posts
    32

    Copy paste only the format and formulas not values

    Hello,

    I need to paste only the format and formulas of a copied range. I used the code below, but it is pasting the values too in the cells.

    Please Login or Register  to view this content.
    Can anyone help please.

    thank you

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Copy paste only the format and formulas not values

    Maybe something like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Copy paste only the format and formulas not values

    Thank you for the help, It worked, but it also deleted the header i had.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Copy paste only the format and formulas not values

    Try this to keep the row 1 headers.

    ActiveSheet.UsedRange.Offset(1).SpecialCells(xlCellTypeConstants).ClearContents


    Or this to define a spcific range to clear.

    ActiveSheet.Range("A2:Z100").SpecialCells(xlCellTypeConstants).ClearContents
    Last edited by AlphaFrog; 05-23-2014 at 11:59 AM.

  5. #5
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: Copy paste only the format and formulas not values

    Thank you so much for the help.

+ 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. Command button to add rows, copy and paste formulas, and format.
    By seankuus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-05-2013, 08:37 PM
  2. Vba - find next empty column, insert column, copy paste values & copy paste formulas
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-20-2012, 12:43 PM
  3. Replies: 13
    Last Post: 12-04-2012, 07:54 PM
  4. Copy and Paste Values only, not formulas, in a protected sheet
    By YMGR in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-30-2012, 07:52 AM
  5. Macro to Copy Paste Values and Formulas
    By thillis in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-19-2009, 11:55 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