+ Reply to Thread
Results 1 to 6 of 6

Inserting column adopts data validation from column to the left - how to stop this?

  1. #1
    Registered User
    Join Date
    04-02-2023
    Location
    Cairns, Australia
    MS-Off Ver
    Microsoft 365 MSO (Version 2202 Build 16.0.14931.20272) 64-bit
    Posts
    11

    Inserting column adopts data validation from column to the left - how to stop this?

    Excel has a 'helpful' function - when you insert a new column it adopts the formatting and data validation from the column to the left.

    When you insert a cut/copied column that contains its own formatting and dropdowns, the inserted column retains its formatting but still adopts the dropdowns from the column to the left, even overriding the dropdowns that were in the inserted column.

    Does anyone know how to stop this from happening, and just let the cut/copied column be inserted and keep its dropdowns?!

  2. #2
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Inserting column adopts data validation from column to the left - how to stop this?

    Hi,
    I don't know to be possible to change the INSERT properties without VBA but you can use the copy with insert in the same time using CTRL+SHIFT+drag
    Select the cells that you want to cut but use the method above it will preserve the validation rule
    Diana Tanase


    If the solutions offered helped you to solve your problem, then mark the thread as SOLVED (thread tools in the top menu) and you can click on * to add reputation to those who helped you, as a way to say thank you !

  3. #3
    Registered User
    Join Date
    04-02-2023
    Location
    Cairns, Australia
    MS-Off Ver
    Microsoft 365 MSO (Version 2202 Build 16.0.14931.20272) 64-bit
    Posts
    11
    Quote Originally Posted by tanasedn View Post
    Hi,
    I don't know to be possible to change the INSERT properties without VBA but you can use the copy with insert in the same time using CTRL+SHIFT+drag
    Select the cells that you want to cut but use the method above it will preserve the validation rule
    Thank you! I actually am running this through VBA, using entirecolumn.insert to insert the cut column. Do you have a VBA solution? Thanks again!

  4. #4
    Valued Forum Contributor
    Join Date
    06-23-2021
    Location
    Romania
    MS-Off Ver
    2021, 365 v 2208
    Posts
    722

    Re: Inserting column adopts data validation from column to the left - how to stop this?

    Hi,
    Unfortunately, the INSERT method uses either the format of the cells on the left or above, or the right and below.
    I recommend that you insert the column in the macro code and then apply a validation rule to it.
    https://learn.microsoft.com/en-us/of...l.range.insert

  5. #5
    Registered User
    Join Date
    04-02-2023
    Location
    Cairns, Australia
    MS-Off Ver
    Microsoft 365 MSO (Version 2202 Build 16.0.14931.20272) 64-bit
    Posts
    11

    Re: Inserting column adopts data validation from column to the left - how to stop this?

    Thank you for your reply. I found a weird workaround - if I CUT-insert then I have the problem. If I COPY-insert then it is solved. So I modified my code to copy-insert, then deleted the original column. It is fixed. So weird!

  6. #6
    Registered User
    Join Date
    04-02-2023
    Location
    Cairns, Australia
    MS-Off Ver
    Microsoft 365 MSO (Version 2202 Build 16.0.14931.20272) 64-bit
    Posts
    11

    Re: Inserting column adopts data validation from column to the left - how to stop this?

    I found a weird workaround - if I CUT-insert then I have the problem. If I COPY-insert then it is solved. So I modified my code to copy-insert, then deleted the original column. It is fixed. So weird!

+ 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] Matching first Column & copying/inserting Unmatched Column data alphabetically in Master
    By paradise2sr in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 08-20-2022, 10:44 PM
  2. [SOLVED] Insert a new column and copy the column with formula in the left column to the latest col
    By Sakurayuki in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-27-2021, 11:29 AM
  3. Replies: 6
    Last Post: 06-26-2017, 09:04 PM
  4. Replies: 6
    Last Post: 03-04-2013, 11:25 AM
  5. Web Query- How to stop inserting......column
    By lee_c_kooper in forum Excel General
    Replies: 5
    Last Post: 01-31-2011, 11:06 AM
  6. Replies: 2
    Last Post: 07-23-2008, 09:56 AM
  7. When inserting a Column, all colors of the LEFT column are copied!!
    By Hutas in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-22-2005, 11: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