Comments box in cell "red information marker" next line code required

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,226
Office Version
  1. 2007
Platform
  1. Windows
Evening,

From my userform i type in a textbox & send this to a cells comments box.
Ive formatted how i would like the box to look but need one more edit & im complete.

Here is the code in use to format my comments.

Rich (BB code):
         With ActiveSheet.Cells(lastrow + 1, 4).Comment.Shape
                .Fill.ForeColor.RGB = vbCyan
                .LINE.Weight = 1#

                With .TextFrame
                    .AutoSize = True
                    With .Characters
                        With .Font
                            .Size = 12
                            .Name = "Calibri"
                            .Bold = True
                        End With
                    End With
                End With
            End With
    Else
         .Cells(lastrow + 1, 4).Value = TextBox6.Text
    End If


My goal is to be able to force the text on the userform to the next line as currently the comments box goes straight across the page.

I have attached a photo of what the current output looks like using the code shown above.

I have also attached a photo of what im trying to do.

hope this can be done.

Thanks
 

Attachments

  • 430.jpg
    430.jpg
    52.5 KB · Views: 8
  • 431.jpg
    431.jpg
    52.9 KB · Views: 8
  • 433.jpg
    433.jpg
    87.2 KB · Views: 7

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top