Link to home
Start Free TrialLog in
Avatar of Lazarus
LazarusFlag for United States of America

asked on

FormulaR1C1 = "" Problem

I am using an FormulaR1C1 statement on my VBscript.

DestSheet.Range("I10").FormulaR1C1 = ""

The problem with it is that other cells rely on it to be an empty cell. But it actaully places something unseen in the cell the the formulas see. If I use teh delete key its fine. How can I change teh formula that I use to delete anyhting in teh cell without deleteing the cell or changing it's format?
ASKER CERTIFIED SOLUTION
Avatar of Dave
Dave
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I can't reproduce your error the way you describe it.  This is pretty common though.  Is there any reason this has to be set with the FormulaR1C1 property?  Just use the Value property which is the default property of the range.
DestSheet.Range("I10") = ""

Open in new window

Avatar of Lazarus

ASKER

No that formula would work as well, except that it still leaves a placemarker of some kind in the cell. The cell does not real remain empty like it would if you use the delete key and becuase of this th eother formauls on teh page that look at that cell see something there and answer incorrectly.
Avatar of Lazarus

ASKER

It seems to place a space intead of nothing in the cell.
Avatar of Lazarus

ASKER

Thanks
well you can just delete the cell contents via VBA

Cheers
Dave

DestSheet.Range("I10").ClearContents

Open in new window