+ Reply to Thread
Results 1 to 4 of 4

detect number of cells are included in a merged cell ?

  1. #1
    Registered User
    Join Date
    08-27-2019
    Location
    United States, New York
    MS-Off Ver
    2010
    Posts
    2

    detect number of cells are included in a merged cell ?

    hello everybody
    I selected 4 cells then merged into one
    I want to detect that the merged cell is formed from 4 cells
    please help

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: detect number of cells are included in a merged cell ?

    Not really (directly) possible. Once you merge cells, they are considered to be 1 cell, with the reference being the top left-most cell in that "range"

    You might be able to do it indirectly though a count of adjacent cells (that contain data), compared to 1 (being the 1 merged cell)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    08-27-2019
    Location
    United States, New York
    MS-Off Ver
    2010
    Posts
    2

    Re: detect number of cells are included in a merged cell ?

    OK thanks my friend

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: detect number of cells are included in a merged cell ?

    Hi there,

    The following code will detect how many single cells are contained in a merged cell:

    Please Login or Register  to view this content.

    Hope this helps.

    Regards,

    Greg M

+ 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. Merged cell error on copy/paste, but no merged cells
    By OmniBlue in forum Excel General
    Replies: 3
    Last Post: 07-15-2019, 02:15 PM
  2. Detect and remove phone number in cells that contains string and number
    By farisnaufghas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2018, 05:34 PM
  3. [SOLVED] Detect paste event (into a merged cell)
    By BellyGas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-21-2017, 08:04 AM
  4. [SOLVED] Detect merged cells using VBA
    By chipnputt in forum Excel General
    Replies: 4
    Last Post: 09-16-2012, 09:20 AM
  5. detect number of exact successive cells
    By mmatta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-31-2012, 08:12 PM
  6. How to detect row number of selected cells?
    By Ivan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-09-2006, 12:50 AM
  7. how do i link merged cells to a merged cell in another worksheet.
    By ibbm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2006, 06:45 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