+ Reply to Thread
Results 1 to 5 of 5

Merge cells in added row.

  1. #1
    Valued Forum Contributor
    Join Date
    02-26-2010
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2003/2007/2010/2016
    Posts
    432

    Cool Merge cells in added row.

    Hello!

    I have this code to add a row below a selected line. It also allows for separate formats of each cell.

    I can't get the syntax right for merging the column A and B cells together. I remmed out the line I am having trouble with. Any help appreciated!

    Lost



    Please Login or Register  to view this content.
    Last edited by leaning; 01-04-2012 at 08:47 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Merge cells in added row.

    you cant have Cells(c, 0).
    the first column "A" is index 1
    use the following code instead:

    Please Login or Register  to view this content.
    Regards,
    Khaled Elshaer
    www.BIMcentre.com

    Remember To Do the Following....
    1. Thank those who have helped you by clicking the Star below their post.
    2. Mark your post SOLVED if it has been answered satisfactorily:
    • Select Thread Tools (on top of your 1st post)
    • Select Mark this thread as Solved

  3. #3
    Valued Forum Contributor
    Join Date
    02-26-2010
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2003/2007/2010/2016
    Posts
    432

    Re: Merge cells in added row.

    Kelshaer,

    That wasn't exactly what I was looking for.

    The user uses the attached file to review purchase paperwork. If there is a revision to paperwork already received, the user justs updates the bottom of the form with whatever changed in the revision. There could be no revisions or 200. So the user clicks a button to add a "revision row" and then there is also a delete button to delete rows.

    Delete works fine. Add works fine, but many of the cells need to be merged. Any added rows need to look just like the example row.

    I aprpeciate your help!

    Lost
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    08-29-2011
    Location
    Mississauga, CANADA
    MS-Off Ver
    Excel 2010
    Posts
    503

    Re: Merge cells in added row.

    please provide the paaswords to unprotect the sheet and view the vba code.
    is it realy important for you to place the cursor on the last used cell in column A or can i modify the code to add the rows under the last cell??

  5. #5
    Valued Forum Contributor
    Join Date
    02-26-2010
    Location
    Chattanooga, TN
    MS-Off Ver
    Excel 2003/2007/2010/2016
    Posts
    432

    Cool Re: Merge cells in added row.

    Hello!

    I ended up using Mr. McRitchie's InsertRowsAndFillFormulas macro. Works great. Sorry about not unprotecting the VBA. Thanks for your help!

    (Updated file attached.)

    Respectfully,

    Lost
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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