Cutting and Pasting Cells into a shape or textbox

G

Gator

I have some cells of data where I would like to cut or copy the cells into
either a shape or textbox....can this be done?
 
G

Gary''s Student

1. create a textbox using the Drawing ToolBar
2. select the cell
3. copy the contents from the formula bar
4. paste into the textbox
 
G

Gary''s Student

This is just an example:

Sub Macro1()
Dim s As String
s = ""
For Each r In Selection
s = s & r.Value & Chr(10)
Next
ActiveSheet.Shapes.AddTextbox(msoTextOrientationHorizontal, 404.25, 88.5, _
187.5, 75#).Select
Selection.Characters.Text = s
End Sub

I put a hard retrun between each cell's data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top