+ Reply to Thread
Results 1 to 6 of 6

Transferring the Userform Textbox Values To a Single Cell As Comment Indicator

  1. #1
    Registered User
    Join Date
    05-01-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    19

    Post Transferring the Userform Textbox Values To a Single Cell As Comment Indicator

    Hi,
    I would like to explain my situation first.

    Scenario:
    I am using a UserForm which has few CheckBoxes and TextBoxes (next to the CheckBoxes). For Instance, the CheckBoxes are considered as criterias which are not fulfilled according to the user. The User checks the criterias and adds Comments in the respective TextBox next to the CheckBox.

    My Question:
    I need a code to merge the values in the TextBoxes and publish the value as a SINGLE Comment to a Cell.

    I would be very grateful if anyone could help me in this regard.
    Many Thanks
    Kind Regards,
    Shiva
    UserForm1.jpg

  2. #2
    Forum Contributor tkowal's Avatar
    Join Date
    11-20-2010
    Location
    Miami, Fl
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Transferring the Userform Textbox Values To a Single Cell As Comment Indicator

    I added an example to get you started....

    Press the Show User Form and whatever textbox Item is checked when the copy to button is pressed those checked items will be copied to the cell entered on the form. The comments will be combined seperated by a ":"

    Hope this helps

    UserFormExample1.xlsm

    If you want to simply place the comments as an indicator
    replace the following code:
    Please Login or Register  to view this content.
    with
    Please Login or Register  to view this content.
    Last edited by tkowal; 05-01-2012 at 12:04 PM. Reason: Added requirements
    Ted
    "Live Long and Prosper"

  3. #3
    Registered User
    Join Date
    05-01-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    19

    Post Re: Transferring the Userform Textbox Values To a Single Cell As Comment Indicator

    Hi tkowal,
    First of all Thank you
    Let me explain you better.
    I had prepared a sheet with the scenario. The User will check the CheckBoxes and adds comments to the TextBox next to it.
    When the User clicks the Calculate Button in the UserForm, the Value will be published in the Cell B3.
    The Help:
    I need a code that transfers the text/value in the TextBox(in the UserForm) to the Cell B3 when the User clicks the Calculate Button.
    Since, there are four different TextBoxes in the UserForm, It would be better to merge all the Text into one Comment for the Cell B3.Example File.xlsm
    I hope I was clear in my explanation.
    Requesting your knowledge and help in this regard.
    Kind Regards,
    Shiva

    Quote Originally Posted by tkowal View Post
    I added an example to get you started....

    Press the Show User Form and whatever textbox Item is checked when the copy to button is pressed those checked items will be copied to the cell entered on the form. The comments will be combined seperated by a ":"

    Hope this helps

    Attachment 153377

    If you want to simple place the comments as an indicater
    replace r.Value = Comments with r.AddComment Comments

  4. #4
    Registered User
    Join Date
    03-14-2012
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Transferring the Userform Textbox Values To a Single Cell As Comment Indicator

    Hi Antzint,

    I'm not entirely sure if this is what your after, but try the attached.
    Attached Files Attached Files

  5. #5
    Forum Contributor tkowal's Avatar
    Join Date
    11-20-2010
    Location
    Miami, Fl
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Transferring the Userform Textbox Values To a Single Cell As Comment Indicator

    ???? That is what my code and revenge4ash8 does?? It takes and merges the comments and allows them to be copied to a cell on your worksheet....

  6. #6
    Registered User
    Join Date
    05-01-2012
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    19

    Post Re: Transferring the Userform Textbox Values To a Single Cell As Comment Indicator

    Activecell.xlsm
    I found a similar solution, Look at this and give your comments
    Kind Regards,
    Shiva

    Quote Originally Posted by revenge4ash8 View Post
    Hi Antzint,

    I'm not entirely sure if this is what your after, but try the attached.
    Quote Originally Posted by tkowal View Post
    ???? That is what my code and revenge4ash8 does?? It takes and merges the comments and allows them to be copied to a cell on your worksheet....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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