+ Reply to Thread
Results 1 to 4 of 4

Loop through Find then special paste background color with VBA

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    3

    Loop through Find then special paste background color with VBA

    Hello,

    I am trying to run a loop that automatically finds a cell value from Worksheet 1 on Worksheet 2 and then special pastes the cell's background color to the corresponding cell on Worksheet 1. For example, it sees cell "Apple" on Worksheet 1, finds a cell with "Apple" which happens to have a red background on Worksheet 2, returns to Worksheet 1 to special paste a red background to cell "Apple".

    The formula I use does not work. Please let me know what I'm doing wrong

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    03-14-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Loop through Find then special paste background color with VBA

    You need an If statement to determine if the cell found in worksheet 2 has the red background AND the corresponding text.

  3. #3
    Registered User
    Join Date
    03-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    3

    Re: Loop through Find then special paste background color with VBA

    I will definitely try to work one in. However, I am not looking for a specific background. There's a matching list of names on each worksheet, I want to copy whatever the background color is from Worksheet 2 to the cell with the same name in worksheet 1. Does that make sense?

  4. #4
    Registered User
    Join Date
    03-13-2014
    Location
    Chicago
    MS-Off Ver
    2013
    Posts
    3

    Re: Loop through Find then special paste background color with VBA

    Now I'm using the following formula, but receiving an error message. Anyone have any idea how to fix this?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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] Find all cells with a specific background color then copy/paste to correct column
    By d_rose in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-20-2012, 10:18 AM
  2. Paste special charts using loop
    By Essec in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-28-2012, 10:13 AM
  3. Paste Special - font color
    By wm1 in forum Excel General
    Replies: 0
    Last Post: 11-26-2007, 07:59 PM
  4. For next loop and paste special Help please
    By mrdata in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-13-2006, 09:55 PM
  5. Need to loop thru cells and change background color
    By Ian Wolstenholme in forum Excel General
    Replies: 6
    Last Post: 02-09-2005, 05:06 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