+ Reply to Thread
Results 1 to 4 of 4

how to merge range of cells and git a text as value of the merged cells

  1. #1
    Registered User
    Join Date
    11-16-2015
    Location
    USA
    MS-Off Ver
    Window 7
    Posts
    28

    how to merge range of cells and git a text as value of the merged cells

    I am trying to merge a range of cells and give it a value as text. It is merging the cells and then giving an error.



    Below is the code line where it says Run-time error '424': Object required.

    Please Login or Register  to view this content.
    Any help is much appreciated. Thanks in advance

  2. #2
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,410

    Re: how to merge range of cells and git a text as value of the merged cells

    I hate merged cells as they cause so much trouble when trying to write code for or around them. However, you asked. I think it would be a two-step process... merge the cells, then assign a value to it. Give this a try...
    Please Login or Register  to view this content.
    or, alternately...
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-16-2015
    Location
    USA
    MS-Off Ver
    Window 7
    Posts
    28

    Re: how to merge range of cells and git a text as value of the merged cells

    That worked
    Yeah I know that merged cells are not ideal . That's the reason I am doing this as the very last step so it does not effect my code. Thank you once again!

  4. #4
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: how to merge range of cells and git a text as value of the merged cells


    As merging cells like here is totally useless except to get troubles …

+ 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 merged and non-merged cells in named range.
    By IMM Tech in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2018, 12:37 PM
  2. [SOLVED] Don't Merge Already Merged Cells
    By JonathanEngr in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-15-2018, 01:16 PM
  3. Mysterious Merge: columns all merged into single cells
    By emeraldzippy in forum Excel General
    Replies: 4
    Last Post: 07-07-2016, 08:41 AM
  4. Replies: 0
    Last Post: 08-08-2012, 11:12 AM
  5. [SOLVED] Merge Cells When Other Merged Cells Receive Specific Data
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 39
    Last Post: 04-03-2012, 10:34 AM
  6. Using Range.find() doesn't work when the text you look for is in merged cells
    By nfuids in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-17-2012, 03:24 PM
  7. [SOLVED] retrieve text from merged cells-How do i read the text in the merged cell?
    By Eric in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2005, 05:05 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