VBA Express Forum  




Go Back   VBA Express Forum > VBA Code & Other Help > Excel Help
     Feedback     
Register FAQ Members Arcade Knowledge Base Training Articles Consulting

Reply
 
Thread Tools Display Modes
Old 05-01-2012, 06:39 AM   #1
antzint

 
Joined: May 2012
Posts: 2
Kb Entries: 0
Articles: 0
Post Solved: Transferring the Userform Textbox Values To a Single Cell As Comment Indicator

Hi,
I would like to explain my situation first.

Scenario:[/b]
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

Local Time: 11:03 AM
Local Date: 05-21-2013
Location:

 
Reply With Quote Top
Old 05-01-2012, 03:32 PM   #2
Tinbendr
 
Tinbendr's Avatar

 
Joined: Jun 2005
Posts: 983
Kb Entries: 0
Articles: 0
VBA:
Dim A As String On Error Resume Next A = ActiveSheet.Range("A1").Comment If Err.Number = 91 Then With ActiveSheet.Range("A1").AddComment .Text Me.TextBox1.Text & " " & Me.TextBox2.Text End With Else ActiveSheet.Range("A1").Comment.Text Me.TextBox1.Text & " " & Me.TextBox2.Text End If On Error Goto 0
VBA tags courtesy of www.thecodenet.com


+------+
| David |
+------+

Local Time: 03:03 AM
Local Date: 05-21-2013
Location:

 
Reply With Quote Top
Old 05-02-2012, 04:07 AM   #3
antzint

 
Joined: May 2012
Posts: 2
Kb Entries: 0
Articles: 0
Post

Thank you Tinbendr
/S


Quote:
 
Originally Posted by: Tinbendr
VBA:
Dim A As String On Error Resume Next A = ActiveSheet.Range("A1").Comment If Err.Number = 91 Then With ActiveSheet.Range("A1").AddComment .Text Me.TextBox1.Text & " " & Me.TextBox2.Text End With Else ActiveSheet.Range("A1").Comment.Text Me.TextBox1.Text & " " & Me.TextBox2.Text End If On Error Goto 0
VBA tags courtesy of www.thecodenet.com


Local Time: 11:03 AM
Local Date: 05-21-2013
Location:

 
Reply With Quote Top
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 02:03 AM.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2012 VBA Express