+ Reply to Thread
Results 1 to 18 of 18

copy/paste special between sheets

  1. #1
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    copy/paste special between sheets

    Hello everyone,

    Newbie question.
    i would like tot copie and paste between sheets (in the same workbook)
    example: in sheet3 i use ='sheet1'!a1 , but with this method i don't get any (needed) text or background color?
    i need that option because color can be changed in sheet1 and therefor the color in sheet3 must follow automatically
    what to do ?? thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: copy/paste special between sheets

    When you select Paste special, select the option to keep format. There are several paste special options. Make sure to select the correct one.

    http://www.excel-easy.com/examples/paste-options.html

    https://support.office.com/en-us/art...9-a76afcd5f5c3
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: copy/paste special between sheets

    thanks, but a copie and paste special doesn't work for me, because i copy a formula (example: in sheet1 i copy cell L41 equal to =AANTALARG(L6:L38)*L3)
    when i paste special in sheet3 i get =AANTALARG(#VERW!)*#VERW!
    that's why i reverted to ='sheet1'!L41 with the known problems

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: copy/paste special between sheets

    Without seeing your worksheet, I cannot opine on the issue. If you wish, attach a sanitized copy for analysis.

  5. #5
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: copy/paste special between sheets

    thanks for not giving up on me.

    sorry, i'm not the brightest bulb in the shop,
    and i don't know how to attach an 'attachment'. i seem not to be permitted?
    if i start a new threat to attach, i get the 'attach' icon but i can't browse for the desired file on my computer.

    what is next?
    thanks

  6. #6
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: copy/paste special between sheets

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  7. #7
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: copy/paste special between sheets

    thanks. in the last sheet = 'totalen' i wrote some comments for you to work with
    Attached Files Attached Files

  8. #8
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: copy/paste special between sheets

    It would be really helpful if you told us the cells on each sheet that should appear on the total sheet or vice versa. I am a bit overwhelmed by the whole explanation. It would be clearer, if you use specific examples for only one month.

  9. #9
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: copy/paste special between sheets

    I'm not sure if I'm following the original question correctly, but I read it that you want a formula which can copy the formatting of the source cell.

    There is no formula that can do that, even vba is unreliable if you want it automated, changing formats doesn't trigger recalculation, so there is nothing to detect the changes made.

  10. #10
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: copy/paste special between sheets

    Hello, the sheet = 'totalen' is only for control/overview/totals. i do no work here.
    the sheets = 'jan' , 'feb' etc are the sheets where the data and formats get changed
    what i am trying to get is: the data and formats in 'totalen' must follow (automatically) what is changed in the other ones

    if i read the comment of jason.b75 i'm affraid that i'm asking something that is not possible even with a simple vba/macro routine

  11. #11
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: copy/paste special between sheets

    Hello, the sheet = 'totalen' is only for control/overview/totals. i do no work here.
    the sheets = 'jan' , 'feb' etc are the sheets where the data and formats get changed
    what i am trying to get is: the data and formats in 'totalen' must follow (automatically) what is changed in the other ones

    if i read the comment of jason.b75 i'm affraid that i'm asking something that is not possible even with a simple vba/macro routine
    Attached Files Attached Files

  12. #12
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: copy/paste special between sheets

    Now making a little more sense, it could be done with vba using a worksheet activate event, set up so that the formats are copied to the 'totalen' sheet when it is activated (logical thought is that if you're not looking at the sheet then the formats are not needed).

    You might need to be a little more consistent to avoid overcomplicating things though. I don't know that there is a way to easily identify the parts of the format that have been changed, so it would probably mean copying all aspects of the formatting.

    Jan and Feb sheets are formatted as number, totalen sheet is formatted as currency. Copying the format to totalen would remove the € symbol from the totalen sheet.

    Jan and Feb sheets are formatted with a size 10 font, totalen is formatted with a size 11 font. Copying the format would reduce the font on totalen to size 10.

    Any thoughts, Alan?

  13. #13
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,887

    Re: copy/paste special between sheets

    I cannot get the formatting colors to copy over. Here is the code I ran to bring over the most current data.

    Please Login or Register  to view this content.
    I have requested additional help from others. Let's hope one of them logs in with a good answer for you.
    Last edited by alansidman; 07-05-2016 at 11:10 AM.

  14. #14
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: copy/paste special between sheets

    Explain the rule you are using for coloring the cells (is it a % of the total due vs paid?). Where is the total price to be paid kept?
    Ben Van Johnson

  15. #15
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: copy/paste special between sheets

    As it appears that only the font colour is needed, try something like this in the 'totalen' worksheet module.

    Please Login or Register  to view this content.
    The code is meant to detect any cell with a simple formula in the format of ='sheetname'!A1 which you appear to have in the relevant cells.

    I haven't done anything to trap errors though, so it will be easy to break. Just throwing it in as a line of thought.

    The 2 Replace commands could be nested, but sucuri was rejecting the post as an sql injection

  16. #16
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: copy/paste special between sheets

    thank you everyone!
    i conclude that if i use the following formula in sheet3: =sheet1!A1 it only returs the value WITHOUT any format(s)
    pitty!
    i will close this thread, thanks again

  17. #17
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: copy/paste special between sheets

    The code i provide was based on your sample workbook and works fine with that.

    It was deliberately set to be selective with the formats that it copies due to inconsistencies, of which the actual requirement remains unclarified (see my comments in post #12).

  18. #18
    Registered User
    Join Date
    06-30-2016
    Location
    antwerp, belgium
    MS-Off Ver
    2007
    Posts
    14

    Re: copy/paste special between sheets

    thank you very much. it does what you said it would do.
    now i have to play with it to understand how it really works.
    Attached Files Attached Files

+ 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. disable copy/cut/paste/paste special in excel 2010
    By Alina Loredana in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-22-2014, 06:43 PM
  2. copy formula and paste for new data added and autofill.....and paste special values
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2014, 07:40 AM
  3. Replies: 1
    Last Post: 10-01-2012, 11:11 PM
  4. Incorporate MATCH, & COPY/Paste Special, Values, into a macro referencing 2 diff sheets
    By m blane wallace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2012, 11:21 AM
  5. Replies: 2
    Last Post: 03-27-2012, 02:49 PM
  6. Copy+Paste Special Single Cell on all sheets
    By eg1 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-23-2011, 01:30 PM
  7. Copy and Paste Special Values ALL sheets
    By arcsum68 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-10-2010, 01:29 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