Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am taking the data from a userform to a comment on the cell the is
currently active. I am running into some errors using the following code close to the end where the data is concantenated. What I need to do is a carriage return....I thought that might be CHAR(10) within the comments area so the outcome in the comments area might look something like this: Customer name: DOA: CC#: EXP Date: Days Staying: Current code: Private Sub Submit_Click() Dim res As VbMsgBoxResult If Custname.Text = "" Then MsgBox "Please enter a valid name!", vbOKOnly End If If CCNo.Text = "" Then res = MsgBox(Prompt:="Do you want to enter a CC for the customer?", _ Buttons:=vbYesNo + vbQuestion) If res = vbYes Then user.Custinfo.Show End If custnm = Custname.Text dtoa = DOA.Value CCN = CCNo.Value ds = DOS.Value EX = Exp.Value com = "Customer name: " & custnm & CHAR(10) & "DOA: " & dtoa & CHAR(10) & "CC#: " & CCN & _ "EXP Date: " & EX & CHAR(10) & "Days Staying: " & ds End Sub Thanks in advance! -- EW - Analyst |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copy comment content to cell content as data not as comment | Excel Discussion (Misc queries) | |||
How can I edit a comment w/o first having to select Show Comment | Excel Discussion (Misc queries) | |||
How do I insert a comment when the Insert:Comment menu is greyed? | Excel Discussion (Misc queries) | |||
Comment Box | Excel Discussion (Misc queries) | |||
a comment plugin & copy paste directly from excel to comment ? fr. | Excel Worksheet Functions |