Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Can anyone suggest why the following code doesn't work. I'm trying to copy a worksheet cell's text and formatting to a shapes textbox without having to loop through each character in turn and individually set the formatting properties. Any comments? Sub textTochart() Dim oursheet As Worksheet Dim charstr As Characters Dim tbox As Shape Set oursheet = ActiveWorkbook.Worksheets("Sheet1") Set tbox = oursheet.Shapes.AddTextbox(msoTextOrientationHoriz ontal, 0, 100, 50, 50) Set charstr = oursheet.Cells(3, 2).Characters Set tbox.TextFrame.Characters = charstr End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
textframe autofit | Excel Discussion (Misc queries) | |||
characters object limit | Excel Discussion (Misc queries) | |||
How to modify contents of TextFrame? | Excel Programming | |||
Hyperlink within the TextFrame of Shape Object..? | Excel Programming | |||
.TextFrame.Characters.Text property readOnly in function?? | Excel Programming |