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

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
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,215,323
Messages
6,124,246
Members
449,149
Latest member
mwdbActuary

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