+ Reply to Thread
Results 1 to 5 of 5

How to merge dynamic range of cells?

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    23

    How to merge dynamic range of cells?

    Hi,

    I have an sheet where There are two columns Script_Name and Steps. Steps column would contain have numeric value, i.e. 5 . I want to write a macro which will take the value from Steps column (5 in this case ) and will merge that many number of rows in both Steps and Script_Name column.

    Can anybody help me with this? Appreciate your help!

    Regards,
    Swagata

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: How to merge dynamic range of cells?

    attach please a sample file with data and desired result
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    11-22-2012
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    23

    Re: How to merge dynamic range of cells?

    Please find the attached sample excel. I want to pick the value from Steps column (5 in this case) and merge that many rows dynamically for Steps and Script_Name column.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: How to merge dynamic range of cells?

    very heplful sample !!!

  5. #5
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: How to merge dynamic range of cells?

    Hi, Swagata,

    I doubt it to be a good idea to work with merged cells (youŽll certainly will run into other issues when working with VBA) but you may try it like this:
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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] VBA to auto merge and middle align for particular row in dynamic range
    By cruise.alter in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-09-2012, 02:32 AM
  2. Merge data in a range of cells using a macro
    By Upparna in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 02-04-2012, 06:19 PM
  3. Merge data in a range of cells using a macro
    By Upparna in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2012, 02:57 PM
  4. Merge Cells to Dynamic Selection
    By aftabn10 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2011, 11:18 AM
  5. Replies: 1
    Last Post: 03-07-2007, 09:53 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