Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2017, 04:04 AM
music_al music_al is offline Conditional Formatting - Duplicates - Apply to specified range Windows 10 Conditional Formatting - Duplicates - Apply to specified range Office 2013
Novice
Conditional Formatting - Duplicates - Apply to specified range
 
Join Date: Nov 2015
Posts: 10
music_al is on a distinguished road
Default Conditional Formatting - Duplicates - Apply to specified range

Hi



By using the code generated in a Macro, I've created this function but instead of just applying the formatting to the duplicate cells in a column, I'd like all 20 columns of the table range that corresponds to a duplicate cell to be formatted. The table is ALWAYS 20 columns wide if that helps. This is the code I'm using...

Columns("B:B").Select
Selection.FormatConditions.AddUniqueValues
Selection.FormatConditions(Selection.FormatConditi ons.Count).SetFirstPriority
Selection.FormatConditions(1).DupeUnique = xlDuplicate
With Selection.FormatConditions(1).Interior
.PatternColorIndex = xlAutomatic
.ThemeColor = xlThemeColorAccent2
.TintAndShade = 0.599963377788629
End With
Selection.FormatConditions(1).StopIfTrue = False


Thank you in advance
Reply With Quote
  #2  
Old 01-25-2017, 05:34 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Conditional Formatting - Duplicates - Apply to specified range Windows 7 64bit Conditional Formatting - Duplicates - Apply to specified range Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,770
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formatting - Duplicates - Apply to specified range Can I apply conditional formatting to text in a drop down menu? Keokira Word 1 04-07-2016 08:22 AM
Conditional Formatting: How to dynamically apply to an expanding table? tinfanide Excel 0 10-18-2013 06:34 AM
Conditional Formatting Duplicates Joanne Excel 6 08-05-2013 02:46 AM
Conditional Formatting - Duplicates - Apply to specified range Using Conditional Formatting to identify duplicates namedujour Excel 3 05-24-2012 05:55 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:34 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft