+ Reply to Thread
Results 1 to 5 of 5

A more elegant solution

  1. #1
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    A more elegant solution

    Hi all.

    The following code works. In the interests of improvement I'm looking for a more elegant solution.

    Please Login or Register  to view this content.
    Effectively this simply takes the value from 3 cells provided they are not empty, collates them, then eventually outputs to a single cell with three paragraphs.

    Would anybody have a simpler more elegant solution?

    Cheers

  2. #2
    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,197

    Re: A more elegant solution

    Hi, Journeyman3000,

    not really elegant:
    Please Login or Register  to view this content.
    I donīt know if the cells are always populated otherwise I wouild make sure that they are filled prior to adding them to the string.

    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

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: A more elegant solution

    Perhaps.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Contributor
    Join Date
    03-05-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    301

    Re: A more elegant solution

    Thank you both HaHoBe and Norrie.

    Both solutions offer something extra for me to consider.

    Thanks and take a rep for the response!

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: A more elegant solution

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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] Looking for a more elegant solution with CountIf to evaluate formats
    By fitzt70 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2013, 03:01 AM
  2. Textbox validation - is there a more elegant solution?
    By madbloke in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-12-2009, 08:03 AM
  3. More Elegant solution to function submitting
    By Mat_Davies in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-16-2009, 09:06 AM
  4. Replies: 3
    Last Post: 07-10-2006, 03:29 AM
  5. Replies: 100
    Last Post: 06-15-2006, 01:14 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