+ Reply to Thread
Results 1 to 8 of 8

Macro that copies as values only the data in the colored cells

  1. #1
    Registered User
    Join Date
    08-11-2009
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    7

    Macro that copies as values only the data in the colored cells

    Hello,
    I need help with a macro that copies as values only the data in the colored cells from Book1.xlsx to the colored cells in Book2.xlsx.
    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro that copies as values only the data in the colored cells

    Make sure both workbooks are open. Place this macro in the Book1 workbook and run it from there:
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    08-11-2009
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Macro that copies as values only the data in the colored cells

    Thanks for the reply!
    The problem is that the colored cells are many. I found a macro that copies the colored cells from one sheet to another. I can't find a marco who can copy data between two workbooks. Here it is:

    Please Login or Register  to view this content.
    Maybe you'll understand what I'm looking for.
    Thanks in advance!
    Last edited by Pepe Le Mokko; 02-09-2020 at 05:05 AM. Reason: Code tags

  4. #4
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro that copies as values only the data in the colored cells

    This macro is based on the two workbooks you posted.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    08-11-2009
    Location
    Sofia, Bulgaria
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Macro that copies as values only the data in the colored cells

    Compilation between the two macros. This is what I was looking for.
    Thank you so much!

    Please Login or Register  to view this content.
    Last edited by Pepe Le Mokko; 02-09-2020 at 05:05 AM. Reason: Code tags

  6. #6
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Macro that copies as values only the data in the colored cells

    @katamata

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    I did it for you this time. Please read forum rules. Thanks

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: Macro that copies as values only the data in the colored cells

    You are very welcome.

  8. #8
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Macro that copies as values only the data in the colored cells

    Based on your last post it seems that you are satisfied with the solution(s) you've received but you haven't marked your thread as SOLVED. If your problem has not been solved you can use Thread Tools (located above your first post) and choose "Mark this thread as unsolved".
    Thanks.

    Also, as a relatively new member of the forum, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

+ 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. [SOLVED] Macro that copies values from one workbook to another, based on matching cells
    By Allerdrengen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-13-2017, 08:22 AM
  2. [SOLVED] Macro that copies a formula to another sheet and copies data at same time
    By Newbienewbster0932 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2017, 02:49 PM
  3. Replies: 1
    Last Post: 11-09-2013, 02:43 AM
  4. Replies: 0
    Last Post: 10-23-2012, 01:50 AM
  5. [SOLVED] Macro which copies data into an invoice if values are true
    By Chihiro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2012, 12:05 PM
  6. summing the values in only the colored cells
    By CRANEGURU in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-12-2009, 04:05 PM
  7. Have blocks of blue colored cells ... want them surrounded by lavender-colored cells
    By rocket1406 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 07-01-2007, 03:59 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