Updating "#Invalid entity XXXX" using VBA

G

Guest

"I working with a file that has about 150 columns and 1000 rows
I using a Hyperion formula that will at point return "#invalit Entity ???
does not exist

I was to use VBA to find all cases when the entity is invalid and replace it
with 0
or if there is a simpler was I'm open to it
 
G

Guest

Dim rng as range
Dim cell as Range
set rng = Activesheet.UsedRange.specialcells(xlformulas,xlTextValues)
for each cell in rng
if instr(1,cell.value,"#Invalid",vbTextCompare) then
cell.value = 0
end if
next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top