View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
ken4capitola ken4capitola is offline
external usenet poster
 
Posts: 13
Default Error when entering a formula

I have a statement that looks like this:

Wks.range("A1") = "=IF(A,0,(IF(B,0,0))"

This statment works on several user machines, but not on one remote
user. Assume following:
(1) VBA had created a new empty sheet prior to this statement
(2) Imperial conventions ( comma delimited)
(3) Assume that strings have previously been inserted into the sheet so
that protection is not an issue

Any guesses on why this would not work on some machines, and not
others?

I've ask the user to insert .formula after the range to see if that
helps. I have several other elementary questions:
(1) If the default property for a range is value, why does the
statement work at all?
(2) If Excel or VBA is smart enough to work out that property needs to
be converted to a formula, then why is .formula needed at all for an
assignment?

As you can tell, I'm still learning the ropes.
Thanks in advance