+ Reply to Thread
Results 1 to 19 of 19

Copy data from one sheet to another without formulas automaticly

  1. #1
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Copy data from one sheet to another without formulas automaticly

    Hi, I have sheet 1 with all kind of cells which contain text. But all that text is there because of formulas I set up for that cells. Now I need to copy ONLY the text from all those cells to another sheet 2, so sheet 2 will look like sheet 1, but without the formulas. Exactly like I would manage to do it manually by ctrl a - ctrl c - ctrl v (choosing the value option), but automaticly, so when something in sheet1 changes, then it will be changed also in sheet2, where there is only text in the cells and not the formulas like in sheet1. Is that possible by setting a macro code in sheet2? Thanks a lot for your help!
    Last edited by bee88; 02-04-2015 at 04:22 PM.

  2. #2
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Copy data from one sheet to another without formulas automaticly

    Should only need one line of code. This belongs in the Sheet1 object.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    Hmm, thanks for your reply, don't get it working. Maybe because I have the two sheets renamed:

    sheet1= Hotový jídelní lístek k tisku

    sheet2= Lístek bez funkcí

    So I put the code in sheet 1 and rename ("sheet2") as ("Lístek bez funkcí"), but nothing happens. When I let the name as ("sheet2") also nothing happens... Do you see what I'm doing wrong?

  4. #4
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Copy data from one sheet to another without formulas automaticly

    By nothing happens, do you mean you make a change to a formula on sheet1, and the corresponding value doesn't appear/change on sheet2?

  5. #5
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    Maybe here I do something wrong. I don't really understand how these macros are working. My sheet2 is completely empty. It's just a new empty sheet. I need all the data from sheet1 exactly the same on sheet2, only without the formulas in the cells. What is the first step? To copy all content from sheet1 to sheet2?

    What I mean by "nothing happens" is that sheet2 stays a completely empty sheet, when I put the code to sheet1 and change something on sheet1 :-)

  6. #6
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    Please can anybody help me how to automaticly copy sheet1 to sheet2 without the formulas in the cells, only the text?

  7. #7
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    Here is a example of what I need: copy the text from all the cells from sheet1 to sheet2, so in sheet2 there is text in the cells and not the formulas like in sheet1. And automaticly like any time the text in sheet1 is changing, it will also change in sheet2. Anybody help me please?? It's unfortunatly in a hurry :-/

    How to automatickly copy data sheet1 to sheet2 without formulas.xlsx

  8. #8
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Copy data from one sheet to another without formulas automaticly

    The code i originally provided works perfectly fine for me in the workbook you just uploaded. I'm reattaching it to that you can see it working.

    I also included a "Sub bee88" that you can run if you really don't want to copy/paste the values over from sheet1 to initially set up sheet2.

    1_How to automatickly copy data sheet1 to sheet2 without formulas.xlsm

  9. #9
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    Well, not really as I need it - when I change something in the "source", then it changes automaticly in sheet1 because of the formulas in the cells, but not anymore in sheet2. Am I doing something wrong or is there missing something? Thank you!

    EDIT: For example, in the source! I change A for ABC, in sheet1 it then is "ABC", but in sheet2 it stays "A", and I need that to be automaticly also "ABC" .
    Last edited by bee88; 02-06-2015 at 11:09 AM.

  10. #10
    Forum Contributor
    Join Date
    12-24-2014
    Location
    little ole England
    MS-Off Ver
    2013
    Posts
    116

    Re: Copy data from one sheet to another without formulas automaticly

    don't think you did anything wrong but as you have not selected or done any manual action on the worksheet you have not triggered the sheet update action

    try clicking in a blank cell and pushing enter see if this updates your sheet2

    hope this helps
    ◄Ŧя?μвŁ?►
    By Name & By Nature

  11. #11
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    Unfortunatly that also doesn't help - if I for place in any cell some "text", then the "text" is automaticly in sheet2 also, that works fine, but the changed data from a cell with formula stays as it was originally

  12. #12
    Forum Contributor
    Join Date
    12-24-2014
    Location
    little ole England
    MS-Off Ver
    2013
    Posts
    116

    Re: Copy data from one sheet to another without formulas automaticly

    try this code ( untested so please use copy data)

    to clear the cells before the paste action

    Please Login or Register  to view this content.

  13. #13
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Copy data from one sheet to another without formulas automaticly

    I've had / read this discussion before in this forum, and as far as I know, there's no way to trigger a _Change event when a cell changes it's own value as the result of a formula. That is, _Change only triggers when a user changes a value.

    If I'm wrong, I'd be interested to know the solution.

  14. #14
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    Thanks for the suggestion, but also doesn't work :-( I'm getting quite desperate...
    Last edited by bee88; 02-06-2015 at 11:59 AM.

  15. #15
    Forum Expert
    Join Date
    08-28-2014
    Location
    Texas, USA
    MS-Off Ver
    2016
    Posts
    1,796

    Re: Copy data from one sheet to another without formulas automaticly

    Yeah, I don't think there is going to be a solution to what you want to do, unless:

    You move the _Change event to the Source sheet, then use an algorithm to transpose the Target Address to the corresponding address on Sheet2.

    Like if the values on Sheet 2 are always two columns to the left and 14 rows down from where they are on the Source sheet, you could do:


    Please Login or Register  to view this content.
    If there's no logic to the positioning of the cells on Sheet2 and Source, then I don't have a solution for you.

  16. #16
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    No, there is no logic to that positioning...

    Is there really no way round? I mean, if I do a "copy" and then "paste - values" to another sheet or workbook, then everything is allright. Doesn anybody know a way to do a copy - past to other sheet or workbook automaticly when there is changing something in the sheet (though only because of a formula in the cell)?

  17. #17
    Registered User
    Join Date
    12-10-2014
    Location
    Czech Republic
    MS-Off Ver
    365
    Posts
    23

    Re: Copy data from one sheet to another without formulas automaticly

    Ok, solved, I figured a way out, by just making a button and creating a macro by following Ctrl A - Ctrl C - Ctrl V - past values.

  18. #18
    Registered User
    Join Date
    12-10-2020
    Location
    Wilmington, NC
    MS-Off Ver
    2018
    Posts
    6

    Re: Copy data from one sheet to another without formulas automaticly

    Why do you always loose info or it changes when moving from one excel sheet to the next?

  19. #19
    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,895

    Re: Copy data from one sheet to another without formulas automaticly

    @Abbylandmark
    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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

+ 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 automaticly copy text from sheet1 to sheet 2 in a workbook
    By chrismartinpetty in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-18-2010, 09:38 AM
  2. Replies: 14
    Last Post: 06-17-2009, 01:33 PM
  3. Replies: 1
    Last Post: 10-14-2005, 11:05 PM
  4. Add a tamplate sheet automaticly when I have copy in a new sheet
    By mowen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-06-2005, 05:54 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