+ Reply to Thread
Results 1 to 8 of 8

macro merged cell

  1. #1
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    macro merged cell

    Hello to all.
    this macro does not work on merged cells, an aid to correct?

    Please Login or Register  to view this content.
    max_max

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: macro merged cell

    The cell count of a merged cell will be greater than 1 so, chances are, you'll fall at the first hurdle.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro merged cell

    Hello
    can it be corrected or must it be changed completely?
    max_max

  4. #4
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro merged cell

    I modified:
    Please Login or Register  to view this content.
    if the cells are megerd, it does not cancel.
    An aid to correct?
    max_max

  5. #5
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro merged cell

    Hi, I corrected this way

    Please Login or Register  to view this content.
    An error if I manually delete the merged cells at this point:
    If InStr(Target, Mid(Pattern, C, 1)) <> 0 Then 'se il carattere čat this point presente in Target
    max_max

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: macro merged cell

    Try:
    Please Login or Register  to view this content.

  7. #7
    Forum Contributor max_max's Avatar
    Join Date
    06-28-2013
    Location
    italy - venice
    MS-Off Ver
    Excel 2007
    Posts
    1,693

    Re: macro merged cell

    Hi TMS is perfect!
    Thank you so much.
    A greeting.
    max_max

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,487

    Re: macro merged cell

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Macro for pasting text into a merged cell?
    By Robbosan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-02-2015, 08:33 AM
  2. Assign Macro to a merged cell
    By graiggoriz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-14-2013, 09:16 AM
  3. Limit merged cell data; Place excess into next merged cell down
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-06-2013, 10:35 PM
  4. [SOLVED] macro or formula to combine 2 cell (down) on a merged cell
    By rampal in forum Excel General
    Replies: 3
    Last Post: 02-16-2013, 05:24 AM
  5. [SOLVED] VB:ClearContents Error on Merged Cell - But I dont have Any Merged Cell
    By cychua in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-24-2013, 06:33 AM
  6. macro with merged cell
    By rona_ele in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-07-2011, 01:09 PM
  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