LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 270
Default Insert Table into Shape

Am trying to use code to insert an Excel table into a shape. Both the table
and shape exist in the same workbook; the table is defined by a range name.
Using the following code I can insert the contents of one cell (P47, for
example), but have been unable to figure out how to insert a table based upon
a range name. Can someone advise on this please?

Dim shp As Shape
Dim sText As String
Set shp = ActiveSheet.Shapes("Rectangle 308")
sText = Worksheets("Tables for Pop-Ups").Range("P47").Text
shp.TextFrame.Characters.Text = sText

 
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
insert a shape into spreadsheet Jane Griffel[_2_] Excel Discussion (Misc queries) 2 August 20th 09 09:14 PM
insert a shape in Excel Jane Griffel[_2_] Excel Discussion (Misc queries) 0 August 20th 09 02:37 AM
Macro or code to insert Shape (Say Smiley face) in XL? Giles Excel Programming 1 October 14th 08 05:55 PM
my curser changed from arrow shape to a cross shape???? bj New Users to Excel 1 February 5th 07 02:47 PM
Insert a line or shape in a table Parkrose Charts and Charting in Excel 1 November 5th 05 03:37 AM


All times are GMT +1. The time now is 06:51 AM.

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"