×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

"= Rectangle 1" Doesn't work!

"= Rectangle 1" Doesn't work!

"= Rectangle 1" Doesn't work!

(OP)
Hi,
How can I put content of a shape in a cell?
"= Rectangle 1" doesn't work. any Idea?

Thanks

RE: "= Rectangle 1" Doesn't work!

You have to do this with VBA.

RE: "= Rectangle 1" Doesn't work!

um,
i no of no technique or process to "put content of a shape in a cell".
shapes are objects, which have physical characteristics (i.e. length, width, color, etc.) and in order to create them using vba, the creator must define the object + physical characteristics.
what you can do is create a rectangle the size of a cell by depressing the "alt" key when creating the rectangle. the rectangle will be sized that of the cell.

good luck!
-pmover

RE: "= Rectangle 1" Doesn't work!

You can add text to autoshapes (insert a shape and right click to add text to that autoshape).
In order to get the text content from the autoshape you can use vba. Subsequent vba coding can place that text in a cell.
So, if you have the rectangle autoshape on your spreadsheet containing text then the following code extracts the text from the autoshape and places it in cell A1:

    ActiveSheet.Shapes("Rectangle 8").Select
    Selection.Characters.Text = "THIS IS A TEST"
    Range("A1") = Selection.Characters.Text

RE: "= Rectangle 1" Doesn't work!

The code should read:

    ActiveSheet.Shapes("Rectangle 1").Select
    autoshapetext = Selection.Characters.Text
    Range("A1") = autoshapetext

RE: "= Rectangle 1" Doesn't work!

You can put the content of a cell in the shape. Click on the shape, then click in the edit bar and type =A1 . The text will then change whenever the contents of A1 changes.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close