Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Can I copy cell contents to an autoshape as text using a macro?

I want to run a macro in order to copy the contents of a specific cell and
add as text to a specific autoshape already located on a worksheet.
For eg contents of cell A249 = 'Andy'. I want the name 'Andy' to transfer to
the autoshape as the text on the autoshape.
Can anyone provide the code required or know of an easier way?
I'm using Excel within Office 2000.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Can I copy cell contents to an autoshape as text using a macro?

Sub AddText()
Dim shp As Shape
Set shp = ActiveSheet.Shapes("Rectangle 1")
sText = Range("A249").Text
shp.TextFrame.Characters.Text = sText
End Sub

--
Regards,
Tom Ogilvy


"Syndrome" wrote:

I want to run a macro in order to copy the contents of a specific cell and
add as text to a specific autoshape already located on a worksheet.
For eg contents of cell A249 = 'Andy'. I want the name 'Andy' to transfer to
the autoshape as the text on the autoshape.
Can anyone provide the code required or know of an easier way?
I'm using Excel within Office 2000.

Thanks

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
Copy cell contents, then paste into the same cell with other text. bluenote31 Excel Discussion (Misc queries) 4 February 9th 10 09:18 PM
How do I copy the contents of a range of text cells and paste into one cell? davfin Excel Discussion (Misc queries) 7 July 4th 06 08:16 AM
Macro - copy cell contents IF Scott Wagner Excel Programming 4 February 17th 06 09:48 PM
Macro to copy cell contents number of columns Pierre Excel Programming 10 November 4th 04 10:54 PM
Copy cell contents into Macro code Bob Leonard Excel Programming 2 December 1st 03 07:29 PM


All times are GMT +1. The time now is 02:23 AM.

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

About Us

"It's about Microsoft Excel"