+ Reply to Thread
Results 1 to 2 of 2

Duplicate Value in a clear print area

Hybrid View

RJ1969 Duplicate Value in a clear... 06-07-2019, 07:24 PM
BadlySpelledBuoy Re: Duplicate Value in a... 06-08-2019, 12:57 AM
  1. #1
    Forum Contributor
    Join Date
    10-05-2014
    Location
    CALIFORNIA
    MS-Off Ver
    2010
    Posts
    1,812

    Duplicate Value in a clear print area

    Hi,
    I have a worksheet that I set a Clear Print Area.

    I added this code in A4, So I don't get a duplicate entry in column A.

    =COUNTIF($A$4:$A$1048576,A4)=1

    I know how to set this in the data validation. After I set the code, I have to drag it down the code in every cell.

    I want to avoid dragging it down because if I do then the "Clear Print Area" that set will be useless.

    Is there anyway suggestion to avoid dragging the code down?

    Thank you

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,951

    Re: Duplicate Value in a clear print area

    You could use a Table then apply the same custom validation rule to that.
    As you enter more rows of data the table expands and copies the validation rule down with it.

    Other that that you'd probably be looking at a VBA approach to it. A simple worksheet change event to check if any value in column A is repeated each time it's changed.

    BSB

+ 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] Clear Print area macro seems to hang
    By sipa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-02-2016, 11:59 AM
  2. Replies: 1
    Last Post: 01-12-2012, 05:49 AM
  3. Macro to duplicate a worksheet Print Area
    By RobGodfrey in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-24-2011, 06:38 AM
  4. Replies: 8
    Last Post: 05-23-2007, 06:39 AM
  5. When I clear a print area, it still prints.
    By AngelaArdettoMicrosoftOfficeExcelWorkshe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-23-2006, 03:35 PM
  6. [SOLVED] Print Area:Hope I am able to clear what I want.
    By Mandeep Dhami in forum Excel General
    Replies: 3
    Last Post: 11-16-2005, 10:55 AM
  7. [SOLVED] Can't Clear Print Area
    By GeorgeF in forum Excel General
    Replies: 2
    Last Post: 08-05-2005, 02:05 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