Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 81
Default Rich Text from Autoshape to Cell

I have a series of shapes that include text. They are used to document
assumptions in various sheets. I have a macro (see simplified version
below) that transfers the contents of these "Note" boxes to a sheet.
Users sometimes format the text in the "Note" boxes. Is there a way, I
can transfer the formatting along with the text?

Sub TransferNotes()
r = 1

For Each shp In Sheets("Staff Time").Shapes
If Left(shp.name, 6) = "tbNote" Then
For x = 1 To shp.TextFrame.Characters.Count Step 250
theText = shp.TextFrame.Characters(Start:=x,
Length:=250).Text
Next

Sheets("Assumptions").Cells(r, 2).Value = Trim(theText)

r = r + 2
End If
Next shp

End Sub

~~~~~~~~~~~~~~~
Thanks for the help.

- John

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
rich text box in forms ed.ayers315 Excel Discussion (Misc queries) 0 January 20th 10 02:33 PM
Rich Text Boxes SueDot Excel Worksheet Functions 2 May 18th 09 05:00 PM
Can I copy cell contents to an autoshape as text using a macro? Syndrome Excel Programming 1 July 11th 06 01:16 PM
Working with Rich Text Format Robert Mulroney[_3_] Excel Programming 5 October 13th 05 12:30 AM
Rich Text Box Randall[_5_] Excel Programming 0 April 30th 05 05:56 PM


All times are GMT +1. The time now is 03:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"