[Last Call] Learn how to a build a cloud-first strategyRegister Now


FormulaR1C1 = ""  Problem

Posted on 2010-01-04
Medium Priority
Last Modified: 2012-05-08
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?
Question by:Lazarus
  • 3
  • 2
LVL 50

Accepted Solution

Dave Brett earned 1000 total points
ID: 26175845
Does this work for your formula referencing?

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

Open in new window

LVL 18

Expert Comment

by:Cory Vandenberg
ID: 26175879
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

LVL 20

Author Comment

ID: 26175979
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.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

LVL 20

Author Comment

ID: 26175994
It seems to place a space intead of nothing in the cell.
LVL 20

Author Closing Comment

ID: 31672654
LVL 50

Expert Comment

by:Dave Brett
ID: 26176016
well you can just delete the cell contents via VBA



Open in new window


Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question