+ Reply to Thread
Results 1 to 18 of 18

Merge cells and in put text or unmerge cells and design with borders and text

  1. #1
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Merge cells and in put text or unmerge cells and design with borders and text

    good day dear friends,

    my requirement is mentioned in the attached sheet.
    appreciate your assistance plse

    best regards to all
    rizvi
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    07-15-2019
    Location
    Mechelen, Belgium
    MS-Off Ver
    Office 365
    Posts
    16

    Question Re: Merge cells and in put text or unmerge cells and design with borders and text

    Hi Rizvi,

    Do you have any more info?

    What did you try already?
    Do you have any experience in programming in vba or none at all?
    What is the eventual goal of the file?
    I think you can get a start already by looking around a bit online..

    You should be able to add code to the worksheet (via "alt+F11")...
    Then you can write a code which checks the value of "I5" each time there's a change in the workbook.

    Then depending on the value of I5 you will need to either merge your range or put in the other values.

    Kind regards,
    Rob

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,164

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    Making use of sheet2 as a helper sheet...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    Hello RobVerheyden,
    Thanks for your kind reply. I do play around with VBA/Formulas, not much though... I recorded 2 macros and with the help of a button, achieving what i need.

    But seeing SINTEK's coding which works beautifully, I wonder if this coding could be done on same page without going into another?

    Many thanks

    best wishes to both
    Rizvi

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,164

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    So you don't want to use sheet2 as helper...Can always hide the sheet...
    If not, Can you still have the info on sheet2 stored somewhere in sheet1 as a template...

  6. #6
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    hi sintek,
    the coding should come in the same sheet. cannot use and extra one, unfortunately. but since i recorded 2 macros to this effect, how about calling the macros?
    in fact i did in VBA - IF Range(..) = ".." Then, Call Macro1 else call macro2. but this doesn't work as the system is not reading the code. fyi, there are about 4 different codings in the same sheet.

    plsd to hear

    best wishes to you
    rizvi

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,164

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    No I don't understand...Do you not want to make use of Template...

  8. #8
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    yes, i want to make use of a template to get this done. however, template should be in same sheet.

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,164

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    yes, i want to make use of a template to get this done. however, template should be in same sheet.
    the upload solves...
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    Great! Thanks, But seems it's done as a copy/paste...

  11. #11
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,164

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    But seems it's done as a copy/paste...
    YES...What do you want?????
    Does this not solve your initial requirement...

  12. #12
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    hi sintek,
    there should not be a duplicate copy in the sheet where you can copy/paste...
    best wishes
    rizvi

  13. #13
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,164

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    Perhaps someone else can assist as my solution does not work...

  14. #14
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    Possibly (placed in the worksheet's code module)...
    Please Login or Register  to view this content.

  15. #15
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,164

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    @dangelor...
    Correct, could be you are...
    If he wanted long way then he could have just recorded a macro...Or specified...

  16. #16
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    Hi Guys,
    thank you all, refer to post 4 I have recorded 2 macro's and achieving my requirement for the moment. however I am still trying to fit in sintek's template though.
    Thank you dangelor, appreciated very much.
    best wishes to all
    Rizvi

  17. #17
    Forum Contributor
    Join Date
    05-04-2015
    Location
    Colombo, Sri Lanka
    MS-Off Ver
    2010
    Posts
    129

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    Thank you all, appreciated.
    for the moment recorded 2 macros and achieving my requirement with the help of a button. but still trying to work out sintek's template though.
    thank you too dandelor

    best wishes
    rizvi

  18. #18
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,164

    Re: Merge cells and in put text or unmerge cells and design with borders and text

    What are you trying to figure out...The required wording you wanted (The two options) is saved as a template somewhere else... as per your request in sheet1...Depending on your selection, that template is copied to the required location...

+ 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] MERGE and UNMERGE cells quickly
    By Red fuji in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2014, 01:11 PM
  2. Merge and Unmerge cells in a protected sheet
    By bhenlee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2013, 03:32 PM
  3. Merge/Unmerge cells in a shared woorkbook
    By Bethy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2012, 09:28 AM
  4. [SOLVED] Merge/unmerge based on whether specific text is present in a column
    By susanbarbour in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-25-2012, 09:08 AM
  5. Merge and unmerge cells based on cell value.
    By Jamison in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-21-2012, 01:08 AM
  6. [SOLVED] Cannot merge or unmerge cells in Excel
    By Tara in forum Excel General
    Replies: 2
    Last Post: 07-05-2006, 04:35 PM
  7. Unable to unmerge/merge cells
    By Dan McCollick in forum Excel General
    Replies: 4
    Last Post: 12-06-2005, 11:15 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