Thta's what I feraed.
Try creating a controls toolbox textbox which does support Multiline
Dim StatisticsTextBox As Object
Set StatisticsTextBox =
ActiveSheet.OLEObjects.Add(ClassType:="Forms.TextBox.1", _
Left:=200, Top:=100, Width:=80, Height:=32)
StatisticsTextBox .Object.MultiLine = True
--
HTH
Bob Phillips
(remove nothere from email address if mailing direct)
"eugene" <eugene@discussions.microsoft.com> wrote in message
news:34994476-E53E-43D9-9C5E-7E8327AFF412@microsoft.com...
> > What sort of textbox, control toolbox or userform?
>
> I don't know the difference. But this is how I create my text box:
>
> dim StatisticsTextBox as shape
> Set StatisticsTextBox = ActiveSheet.Shapes.AddTextbox
> _(msoTextOrientationHorizontal, 3, 3, 200, 300)
>
> When I add the following line, I get an error (using Windows XP and Excel
> 2004):
> StatisticsTextBox.MultiLine = True
>
> --
> eugene
>
>
> "Bob Phillips" wrote:
>
> > What sort of textbox, control toolbox or userform? Multiline should
work,
> > and add Alt-Enter, or Chr(10) should give you the breaks.
> >
> > --
> > HTH
> >
> > Bob Phillips
> >
> > (remove nothere from email address if mailing direct)
> >
> > "eugene" <eugene@discussions.microsoft.com> wrote in message
> > news:7B46CF5D-E70B-4842-872B-927B44C01C04@microsoft.com...
> > > I am trying to automate the creation of a series of textboxes (one for
> > each
> > > page of my workbook - which consists of many pages) that will grab
data
> > from
> > > cells on different pages of the workbook and display the information
to a
> > > user. This is done interactively. The data in the box has to change
> > > constantly depending on what triggers its display. I got much of this
to
> > work
> > > but I am encountering a few problems, which I suspect are simple, but
> > which
> > > I can't resolve.
> > >
> > > I enter text in excel cells. But sometimes the text is very long and
ought
> > > to be broken down into paragraphs. Is there any way either (1) to
enter
> > the
> > > text with paragraph marks embeded so that when it is dumped into the
text
> > box
> > > it will look formatted or (2) to bring it the text piecemeal (I can do
> > that)
> > > and add the appropriate marks as it is being read into the textbox (I
> > could
> > > add some character to the text that would allow a program to
substitute it
> > > for whatever is necessary.)
> > >
> > > I have tried a number of things but none seem to work. It may be that
the
> > > root of my problem is that I do not have the text box set to
mulitline. I
> > > can't seem to get ".multiline = true" to work (I get a runtime
error).
> > >
> > > I do not want to create each box manually since there will be very
many of
> > > them, and I suspect I will want to change other things as I progres.
> > > Currently I have a macro to do some of that. But I can't seem to get
all
> > the
> > > details right.
> > >
> > > There are other such issues. But initially, I would greatly
appreciate
> > help
> > > in resolving the particular ones mentioned.
> > >
> > > Thanks.
> > >
> >
> >
> >
Bookmarks