+ Reply to Thread
Results 1 to 4 of 4

How to Disable Cell Merging on Single Sheet (without using sheet protection)

  1. #1
    Registered User
    Join Date
    09-27-2010
    Location
    England
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    20

    Question How to Disable Cell Merging on Single Sheet (without using sheet protection)

    Hi Folks,

    I have a workbook with multiple sheets with at least one of which being the subject "list sheet".
    On this list sheet there is a header area which has some intended merged cell ranges and a list area below which the user fills in which the cells are not merged (and not intended to be merged).
    The list area (consisting of 8 columns, n x rows) in this sheet is filled in by multiple users.
    Some use the sheet as intended but as always there is someone who finds a "weakness" in the design.
    The weakness in this case is that a user has merged cells in the list area (in this case in a column, vertically).
    The intention is that the user fills in one row per item and as this sheet is subject to subsequent post-processing it needs to be clear of merged cells.

    [REQUEST]
    - How do I disable / not allow merging of cells on a sheet in a workbook without using Sheet Protection?
    - The workbook can contain multiple copies of this sheet so it would be necessary for the functionality to disable merging cells to move with the copied sheet.
    - Should be XL 2003/2010 compatible


    I currently use Sheet Protection to prevent merging of cells but this is affecting other areas on the list sheet which I am having to find workarounds for, all making the template file larger than required when all I need to do really is not allow merging in the first place.

    Anyone come across a solution for this problem before?
    Your help would be appreciated.

    Nutty
    Last edited by nuttyengineer; 07-09-2012 at 04:26 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: How to Disable Cell Merging on Single Sheet (without using sheet protection)

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    09-27-2010
    Location
    England
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    20

    Re: How to Disable Cell Merging on Single Sheet (without using sheet protection)

    Hi Ben,

    Thank you for your quick reply. Your suggestion is a nifty solution to the stated problem.

    After testing the code out today, my initial reaction was ... yes it stops row cells being merged together (vertical merging of cells in same column) but not cells across columns (horizontal merging of cells in same row).
    So I played around with "...Target.Columns(1)" and "...Target.Cells(1)" as in the code below just to see what would happen.
    In the end I reverted to using your original suggestion however still using this in conjunction with slightly different sheet protection options which now gave the desired result.

    Please Login or Register  to view this content.
    The reason for not using ...Target.Cells(1) is that I can't then mark a row in my list to copy down / delete etc

    So I'll put this one as SOLVED for now

    BUT

    If you (or anyone else) has any ideas on how to disable the merge function button itself (if possible) then I'd still be interested to find out how to do that (similar to disabling copy/paste button in menus/ribbon etc as in other posts and on web).
    Last edited by nuttyengineer; 07-09-2012 at 04:31 PM.

  4. #4
    Registered User
    Join Date
    12-26-2015
    Location
    los angeles
    MS-Off Ver
    2016
    Posts
    1

    Re: How to Disable Cell Merging on Single Sheet (without using sheet protection)

    I modified this code and it works for me
    Please Login or Register  to view this content.
    Sorry if there are errors this is my first post!
    Last edited by scout1520; 07-06-2016 at 07:58 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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