Userform - scroll to see full contents of a cell

johnohio

New Member
Joined
May 12, 2005
Messages
48
Office Version
  1. 2016
Platform
  1. Windows
I am creating a userform and I am stuck on one part.

The form will open up and pull in data from various spots. One of the cells will be text notes which will be of varying lengths. So when the form is opened I want it to be able to handle the fact that the cell might have 10 characters or it might have 350 characters. I would like it to open a fixed size and if it is a long comment in that field then they can scroll to see the rest of the contents. I'm not sure how to get it to open up so there are arrows/buttons that you can press to scroll down/up the contents of that cell.

Thanks in advance.
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
<!--[if gte mso 9]><xml> <w:WordDocument> <w:View>Normal</w:View> <w:Zoom>0</w:Zoom> <w:DoNotOptimizeForBrowser/> </w:WordDocument> </xml><![endif]--> I suggest you use an InkEdit control. Your instance of Excel probably does not show this control in the References. To add this to the Form’s toolbox:


Alt F11 to get to the development screen
Tools: References: “Check” "Microsoft InkEdit Control"

Click OK


Add the control to the form in the usual way:

Set the InkEdit ScrollBars property to fmScrollBarsVertical

Set the text for the InkEdit control
Code:
Private Sub UserForm_Initialize()

      Me.InkEdit1.Text = Range("B3")
  End Sub

Test and post results
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

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