Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default .FormulaR1C1="abc" works, .Text="abc" doesn't. WHAT the?

That's right:

ActiveCell.FormulaR1C1 = "abc" works; ActiveCell.Text = "abc" fails
(with error 424, "Object required").

This is chaos.

Please rebut.

***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default .FormulaR1C1="abc" works, .Text="abc" doesn't. WHAT the?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default .FormulaR1C1="abc" works, .Text="abc" doesn't. WHAT the?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,533
Default .FormulaR1C1="abc" works, .Text="abc" doesn't. WHAT the?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 100
Default .FormulaR1C1="abc" works, .Text="abc" doesn't. WHAT the?

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default .FormulaR1C1="abc" works, .Text="abc" doesn't. WHAT the?

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
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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


All times are GMT +1. The time now is 07:31 PM.

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"