Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
.TextFrame.Characters.Text property readOnly in function??
I am trying to mirror the text in an Excell cell to the text
in a shape object using the code below. Cell B3: = 5/5/03 Cell B4: = =SomeWB.XLS!tmp(B3) Function tmp(dte As Range) As String // thisShape shape object already exists With ActiveSheet.Shapes("thisShape") .TextFrame.Characters.Text = dte.Value End With tmp = "OK" End Function // sub is run using Marco | Run Sub tmp() // thisShape shape object already exists With ActiveSheet.Shapes("thisShape") .TextFrame.Characters.Text = "mock date value" End With End Function I use the same code in a Sub and a Function, but the dte.Value won't display using the function. I even called the sub from a function an it still does not work. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
textframe autofit | Excel Discussion (Misc queries) | |||
How to set text property of a check box to value of a cell? | Charts and Charting in Excel | |||
Function to move text 65 characters to next row in column? | Excel Worksheet Functions | |||
VBA Code For OR-Function Using Cell Property | Excel Discussion (Misc queries) | |||
expected sub, function, or property | Excel Programming |