Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default If sheet has no #N/A error then...

I have a large sheet with plenty of DDE links to a market data server.

Depending of the link status and other conditions the sheet updates all the
links after variable lengths of time.

While a link is not updated the cell shows #N/A

Is there a way to quickly check that all DDE links have been updated?

I can check that every cell is not error but that is not good enough.

Thanks,

Antonio
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default If sheet has no #N/A error then...

You say the check is for #N/A, then say that is not good enough. Perhaps
you mean looping is not good enough

Dim rng as Range
On error resume next
set rng = Range("A1:Z26").Specialcells(xlFormulas,xlErrors)
On error goto 0
if not rng is nothing then
' all updated
else
' not all updated
end if

this assumes they won't show other type errors such as #Value

--
Regards,
Tom Ogilvy


"Antonio" wrote in message
...
I have a large sheet with plenty of DDE links to a market data server.

Depending of the link status and other conditions the sheet updates all

the
links after variable lengths of time.

While a link is not updated the cell shows #N/A

Is there a way to quickly check that all DDE links have been updated?

I can check that every cell is not error but that is not good enough.

Thanks,

Antonio



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default If sheet has no #N/A error then...

Just perfect! Many thanks,

One small thing, it should be if not rng is nothing then "not all updated..

"Tom Ogilvy" wrote:

You say the check is for #N/A, then say that is not good enough. Perhaps
you mean looping is not good enough

Dim rng as Range
On error resume next
set rng = Range("A1:Z26").Specialcells(xlFormulas,xlErrors)
On error goto 0
if not rng is nothing then
' all updated
else
' not all updated
end if

this assumes they won't show other type errors such as #Value

--
Regards,
Tom Ogilvy


"Antonio" wrote in message
...
I have a large sheet with plenty of DDE links to a market data server.

Depending of the link status and other conditions the sheet updates all

the
links after variable lengths of time.

While a link is not updated the cell shows #N/A

Is there a way to quickly check that all DDE links have been updated?

I can check that every cell is not error but that is not good enough.

Thanks,

Antonio




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
Protect Sheet Error Kcope8302 Excel Worksheet Functions 0 December 18th 08 03:38 PM
Macro sheet by sheet error Daniel R. Young Excel Programming 2 October 12th 05 01:35 AM
Error when moving sheet mihai[_5_] Excel Programming 2 November 9th 04 03:14 PM
Sheet protection error msg - Unrequested sheet activation deltree[_3_] Excel Programming 0 January 28th 04 06:20 PM
Error 91 but only when sheet is protected Limey1971 Excel Programming 2 January 22nd 04 10:27 AM


All times are GMT +1. The time now is 11:35 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"