+ Reply to Thread
Results 1 to 4 of 4

VBA to copy Gradient of cell based on contents

  1. #1
    Registered User
    Join Date
    02-09-2016
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    16

    VBA to copy Gradient of cell based on contents

    Hi,

    I currently use the blow code to copy the colour of a cell depending on its contents. But what im trying to do is also copy the 'fill effects' of the cell or the gradient of the colour(s).

    Can anyone point me in the right direction?

    Thanks in advance

    I have posted this at Ozgrid as well. http://www.ozgrid.com/forum/showthread.php?t=198663




    Please Login or Register  to view this content.

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

    Re: VBA to copy Gradient of cell based on contents

    Try something like this to paste all formatting

    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
    02-09-2016
    Location
    Wales
    MS-Off Ver
    2010
    Posts
    16

    Re: VBA to copy Gradient of cell based on contents

    Thanks for this worked, but did hang a little then left it in copy mode for the selected colour.

    Got this a solution over at ozgrid on the link in my original post.

    But thank you for your time and help it is appreciated.

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

    Re: VBA to copy Gradient of cell based on contents

    It looks like it's the same code as suggested in the other forum without the unnecessary Selections. But as long as you got it working...
    Last edited by AlphaFrog; 02-15-2016 at 01:19 PM.

+ 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] Copy Paste Contents based on contents in designated cell
    By nickmessick1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2014, 01:23 PM
  2. [SOLVED] Gradient color formating based on another worksheet cell.
    By SamCV in forum Excel General
    Replies: 1
    Last Post: 11-26-2013, 04:08 PM
  3. Change Cell Color to Gradient Based on Adjacent Cell Colors
    By Weathertuck in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-21-2013, 04:49 PM
  4. [SOLVED] Macro to copy and paste based on cell contents
    By ScabbyDog in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-23-2012, 11:07 AM
  5. Copy contents of linked cell based on color
    By wisereader in forum Excel General
    Replies: 1
    Last Post: 02-23-2012, 01:52 AM
  6. copy contents of cell based on drop-down association
    By Greed in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2011, 03:55 PM
  7. Replies: 6
    Last Post: 02-26-2010, 09:20 AM
  8. Macro to copy the contents of a cell based on certain condition
    By Newbiee in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 11-09-2009, 01:29 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