+ Reply to Thread
Results 1 to 8 of 8

copy paste special

  1. #1
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    copy paste special

    Please help me to modify the part of an complete macro to copy and paste specials (values, columns widths, formats) from sheet2 to sheet3.
    I don't want to copy the formulas just the values and the formats.

    Please Login or Register  to view this content.
    Last edited by ccsmith; 11-02-2012 at 03:25 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy paste special

    Try this
    Please Login or Register  to view this content.
    Last edited by arlu1201; 11-02-2012 at 07:05 AM. Reason: Added line to clear clipboard.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copy paste special

    You could also try this:

    Please Login or Register  to view this content.
    Last edited by Winon; 11-02-2012 at 06:19 AM.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy paste special

    Yet again Winon, if you use the Select & Activate statements, it makes the code slower and the code works more efficiently without them. Hence, my code above does not have any select & activate statements.

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copy paste special

    @ arlu1201,

    Yet again Arlette, I concede, thank you!

    But may we please clear the ClipBoard?

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: copy paste special

    Oops yeah Winon. Thanks. Edited the code.

  7. #7
    Forum Contributor
    Join Date
    04-21-2010
    Location
    Budapest
    MS-Off Ver
    Excel 2010
    Posts
    155

    Re: copy paste special

    Thanks for your reply.
    My only problem is that the height of the rows didn't keep the original source of formatting.
    Do you have idea how to keep the height of the rows after copy / paste in the new worksheet?

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: copy paste special

    Hello ccsmith,

    Try this Code.

    Please Login or Register  to view this content.
    Last edited by Winon; 11-03-2012 at 03:17 AM. Reason: Corrected Sheet reference

+ 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