Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Updating "#Invalid entity XXXX" using VBA

"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
--
Helping Is always a good thing
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Updating "#Invalid entity XXXX" using VBA

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

--
Regards,
Tom Ogilvy

"QuietMan" wrote:

"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
--
Helping Is always a good thing

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 109
Default Updating "#Invalid entity XXXX" using VBA

Thanks Tom, will try it later
--
Helping Is always a good thing


"Tom Ogilvy" wrote:

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

--
Regards,
Tom Ogilvy

"QuietMan" wrote:

"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
--
Helping Is always a good thing

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error "invalid data source reference" for pivot table Manny Excel Worksheet Functions 6 April 5th 23 02:58 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Subtotal without "xxxx total" but only xxxx ashish128 Excel Discussion (Misc queries) 3 May 2nd 06 01:07 PM
"Invalid property" after "Clear Form" B[_4_] Excel Programming 1 April 19th 06 04:57 AM
within a macro how can I suppress the warning pop "A file named xxxx.xls already exists in this location. Do you want to replace it?" Pete McCosh Excel Programming 0 April 2nd 04 04:51 PM


All times are GMT +1. The time now is 04:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"