+ Reply to Thread
Results 1 to 8 of 8

amend vba code to copy as values

  1. #1
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    amend vba code to copy as values

    Hi is anyone able to amend this code created by forum member dflak. I want the code to copy / paste as values on the display sheet :-)


    Thanks for your help


    Added correct file 'dashboard'
    Attached Files Attached Files
    Last edited by Nubian; 12-27-2015 at 02:13 PM.

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

    Re: amend vba code to copy as values

    Change this...
    Please Login or Register  to view this content.
    To 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
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: amend vba code to copy as values

    thank you for your quick response and time. the code you gave works but are you able to make it so that it still includes formats and pictures :-))

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

    Re: amend vba code to copy as values

    Try this...
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: amend vba code to copy as values

    thank you works perfectly :-)

  6. #6
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: amend vba code to copy as values

    I'm taking apart the copy / paste to copying the images and the data grid. I commented out the lines you can delete
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: amend vba code to copy as values

    I have come across an error I can't resolve - any help appreciated. If I formulate the data tab it sometimes does not copy / paste values correctly. The information seems to get jumbled

    If you test the 'Dashboard test' file - In the data tab section 2 cell G35 I have formulated to pick up cell G23, In the display sheet when you select 'Section 2' for that formulated cell it seems to be looking at cell G3 which is blank and pasting blank instead of paste values of cell G35?

    Hopefully someone can review the code and check the error? :-) Thanks
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    12-30-2011
    Location
    UK
    MS-Off Ver
    Excel 2013
    Posts
    49

    Re: amend vba code to copy as values

    did not realise dflak already solved this. thread solved :-)

    thanks again!

+ 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. Help to amend code
    By ExcelFailure in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2015, 08:28 AM
  2. [SOLVED] Amend Code
    By Burt_100 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 04-23-2015, 05:58 AM
  3. why the amend code is not working?..any help pls?
    By reignkystar in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-10-2013, 06:50 AM
  4. Amend Code for Printing
    By mdot218 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-12-2011, 08:34 PM
  5. Amend Code help
    By VBA Noob in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 09-21-2006, 03:16 PM
  6. Amend code
    By VBA Noob in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-20-2006, 05:32 PM
  7. Amend the Code
    By shan_in_dubai in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-19-2005, 04:36 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