+ Reply to Thread
Results 1 to 7 of 7

Copy values only

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    Norfolk, England
    MS-Off Ver
    Excel 2003
    Posts
    26

    Copy values only

    Hi,

    Am new to the forum and just need some help with this coding please.

    At present I have a Data Input sheet, then info copies over onto various other sheets using this VBA coding (this is just a section of it)

    Please Login or Register  to view this content.
    This all works spot on, but I also have a version where the data entry is links to other workbooks, so the data is not just simple text and numbers.

    Can anyone please suggest an amend to the above that would copy values only?

    My problem is this part...

    Please Login or Register  to view this content.
    Doesn’t ever include .paste so I haven’t got anything to simply replace with .pastespecial xlpastevalues, otherwise it would be fairly simple.

    Any suggestions – think it’s this line that is performing the "pasting" function - Sheets("data input").Rows(Cell.Row).Copy Sheets("Niche Floor").Rows(iMatches3)

    Thanks in advance,

    Ross

    Moderator Note:

    Pls use code tags around your code next time as per forum rules.
    Last edited by Fotis1991; 11-21-2013 at 07:09 AM.

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

    Re: Copy values only

    Please use code tags with your code as per forum's rule
    Please Login or Register  to view this content.
    INTO
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    Norfolk, England
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Copy values only

    Many thanks for this and apologies for the lack of code tags - totally new to the forum and didn't know how to do that (do now though cheers)

    This looks like should work, but the End If function now doesn't seem to work so just loops continuously?

    Please Login or Register  to view this content.
    Any further suggestions to resolve this issue?

    Cheers

  4. #4
    Registered User
    Join Date
    07-10-2013
    Location
    Norfolk, England
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Copy values only

    Actually from using F8, it appears to loop once it's gets to the second Next, and goes back to the If (Len.....) line, so this is the section that loops: -

    Please Login or Register  to view this content.

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

    Re: Copy values only

    If you mean to exit the sub if row B is empty.

    Please Login or Register  to view this content.

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

    Re: Copy values only

    Or use this line.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-10-2013
    Location
    Norfolk, England
    MS-Off Ver
    Excel 2003
    Posts
    26

    Re: Copy values only

    Brilliant - think got it all sorted.

    Many thanks for your help AB33

+ 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. Replies: 8
    Last Post: 07-08-2013, 06:03 AM
  2. Need help making a macro to copy range of values based on cell values.
    By zolton in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-23-2013, 08:58 AM
  3. modify macro to copy values instead of copy and worbook instead of worsheet
    By sbab in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2013, 08:43 AM
  4. Replies: 0
    Last Post: 09-06-2012, 04:06 AM
  5. [SOLVED] Copy/Paste how to avoid the copy of formula cells w/o calc values
    By Dennis in forum Excel General
    Replies: 10
    Last Post: 03-02-2006, 06:50 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