Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That's right:
ActiveCell.FormulaR1C1 = "abc" works; ActiveCell.Text = "abc" fails (with error 424, "Object required"). This is chaos. Please rebut. *** |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
from help:
Returns or sets the text for the specified object. "Read-only String for the Range object", read/write String for all other objects. see the part i enclosed in quotes. -- Gary wrote in message ... That's right: ActiveCell.FormulaR1C1 = "abc" works; ActiveCell.Text = "abc" fails (with error 424, "Object required"). This is chaos. Please rebut. *** |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've never been able to assign anything to ActiveCell.Text. I don't know
why, but it's consistent. -- HTH, Barb Reinhardt " wrote: That's right: ActiveCell.FormulaR1C1 = "abc" works; ActiveCell.Text = "abc" fails (with error 424, "Object required"). This is chaos. Please rebut. *** |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You can use ActiveCell.Value= "abc".
Regards, Per skrev i meddelelsen ... That's right: ActiveCell.FormulaR1C1 = "abc" works; ActiveCell.Text = "abc" fails (with error 424, "Object required"). This is chaos. Please rebut. *** |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks to all who replied.
But the question remains unanswered. If something is read-write, then any property that *gets* to that something should be read-write. Shouldn't it? So is MS's having made ActiveCell.Text read-only just a fluke? If not, what is the rationale? Thanks again. *** |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The .text property is what you see in the cell--not the .value.
If you have 543123.2341 and have it formatted as: #,###.00 you'd see: 543,123.23 If you skinny down that columnwidth enough, you'll see ###'s. I'm not sure what you should happen if you could change the .text property. Should xl figure out what numberformat/value combination should be applied to get it? Should it replace the .formula with a just a string value? I'm kind of glad that there's a difference between .text and the rest. wrote: Thanks to all who replied. But the question remains unanswered. If something is read-write, then any property that *gets* to that something should be read-write. Shouldn't it? So is MS's having made ActiveCell.Text read-only just a fluke? If not, what is the rationale? Thanks again. *** -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |