+ Reply to Thread
Results 1 to 9 of 9

Copy value not format?

Hybrid View

  1. #1
    Registered User
    Join Date
    01-04-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Copy value not format?

    Sheet1.Range("B" & i + 1).Copy Sheet2.Range("B" & (cellsh2 + 3)).value

    This above does not work. "Copy method of Range class failed". Why? What is proper syntax suppose to be?

    Thanks.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Copy value not format?

    Sheets("sheet3").Range("A1:A3").Copy Destination:=Sheets("sheet2").Range("A1:A3)

  3. #3
    Registered User
    Join Date
    01-04-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Copy value not format?

    Quote Originally Posted by mehmetcik View Post
    Sheets("sheet3").Range("A1:A3").Copy Destination:=Sheets("sheet2").Range("A1:A3)
    I should of been more clear in my topic. I do NOT want the cell format(no color, no size, etc), only want the value.

  4. #4
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy value not format?

    An error

    Sheets("sheet3").Range("A1:A3").Copy Destination:=Sheets("sheet2").Range("A1:A3)

  5. #5
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Copy value not format?

    Why don't you record your action?

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy value not format?

    Sheets("sheet3").Range("A1:A3").Copy
    Sheets("sheet2").Range("A1").PasteSpecial xlValues

  7. #7
    Registered User
    Join Date
    01-04-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Copy value not format?

    Quote Originally Posted by AB33 View Post
    Sheets("sheet3").Range("A1:A3").Copy
    Sheets("sheet2").Range("A1").PasteSpecial xlValues
    This above appears to work but interesting that this below does not.


    Quote Originally Posted by AB33 View Post
    Sheets("sheet3").Range("A1:A3").Copy Sheets("sheet2").Range("A1").PasteSpecial xlValues

  8. #8
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Copy value not format?

    Sheets("sheet3").Range("A1:A3").Copy Sheets("sheet2").Range("A1").PasteSpecial xlValues
    copy and past special should be on separate lines (Should not on a single line) , otherwise, you get an error.

  9. #9
    Registered User
    Join Date
    01-04-2014
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Copy value not format?

    Quote Originally Posted by AB33 View Post
    copy and past special should be on separate lines (Should not on a single line) , otherwise, you get an error.
    Yeah, I noticed that. Oh well.

    thanks all.

    Btw, don't record cause my complete macro is much more in depth and complicated. I only posted the bit that was giving me issue.

+ 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 copy a conditional format as an ACTUAL format?
    By checkup2012 in forum Excel General
    Replies: 4
    Last Post: 02-18-2013, 08:22 PM
  2. [SOLVED] Copy Conditional Format only without over writing existing format
    By RobNorwichUK in forum Excel General
    Replies: 2
    Last Post: 01-22-2013, 12:20 PM
  3. [SOLVED] Copy data in one format from Sheet1 and paste to another sheet in another format.
    By FergusC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-06-2012, 08:36 PM
  4. How to copy format, derived from conditional format?
    By jeff.p in forum Excel General
    Replies: 2
    Last Post: 12-20-2007, 04:57 AM
  5. [SOLVED] Lock Cell Format - Allow copy and paste of data without format change
    By Chris12InKC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-11-2006, 12:50 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