With ActiveCell properties

mrsushi

Board Regular
Joined
Nov 18, 2006
Messages
180
Office Version
  1. 2010
Trying to figure how to amend the formula as per below

Cell A12 is blank as per below VBA formula.
Cell B12 is blank too.

So when the formula in C12 is as follows A12=B12, this produces a FALSE. How is this when both A12 B12 Is blank?

How can I amend the formula so that both cell empty values equates to TRUE?


With ActiveCell.Offset(12, 0)
.Value = " "
End With

Many thanks
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How is this when both A12 B12 Is blank?
One of them isn't empty, your code is putting a space into a cell, therefore it isn't empty.
Also with your code, if A1 is the active cell, then it's putting the space into A13 not A12
 
Upvote 0
how do we alter the code to remove the space?

like below?

.Value = ""
 
Upvote 0

Forum statistics

Threads
1,214,927
Messages
6,122,311
Members
449,080
Latest member
jmsotelo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top