Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() hi i got a sheet which I copy and insert it at the end of the workboo problem is that I have a rectangle which I would like text to be insid however it changes names as soon as I copy it is there a way I could us like a variable to do what I want with the only shape on my sheet. Code ------------------- Sub Macro6() ActiveSheet.Shapes("Rectangle 1627").Select Selection.Characters.Text = "hello world. Its" & Now() End Sub ------------------- -- funkymonkU ----------------------------------------------------------------------- funkymonkUK's Profile: http://www.excelforum.com/member.php...fo&userid=1813 View this thread: http://www.excelforum.com/showthread.php?threadid=54469 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You say you only have one shape, but you have already described having a
command button on the sheet, which is a shape as well. So I assume you know where the shape is located: for each shp in ActiveWorksheet.Shapes if shp.TopLeftCell.Address = "$B$9" then shp.TextFrame.Characters.Text = "hello world. Its" & Now() end if Next -- Regards, Tom Ogilvy "funkymonkUK" wrote: hi i got a sheet which I copy and insert it at the end of the workbook problem is that I have a rectangle which I would like text to be inside however it changes names as soon as I copy it is there a way I could use like a variable to do what I want with the only shape on my sheet. Code: -------------------- Sub Macro6() ActiveSheet.Shapes("Rectangle 1627").Select Selection.Characters.Text = "hello world. Its" & Now() End Sub -------------------- -- funkymonkUK ------------------------------------------------------------------------ funkymonkUK's Profile: http://www.excelforum.com/member.php...o&userid=18135 View this thread: http://www.excelforum.com/showthread...hreadid=544699 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Where do I find buttons to change shape to 3-D and rotate in 2007 | Excel Discussion (Misc queries) | |||
my curser changed from arrow shape to a cross shape???? | New Users to Excel | |||
Is it Possible to Find Shape at a Location (#find) for XL97? | Excel Programming | |||
Find Autoshape | Excel Programming | |||
Deleting a shape and the cell contents the shape is in. | Excel Programming |