LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default How can I ignore value from a workbook that are not in my collection?

Hi,

I have created a collection in VB Excel.
My macro is reading a value in one cell (on each row) in a spreadsheet
and using the collection, it return a Name.
Sometime, the value that the macro took from the spreadsheet is not
found in the collection index so I get an error message and the macro
stopped.
But those missing value are volontary so I would like the macro to
ignore those and continue with the rest of the function.
Is there a way to do that?

Thanks,

 
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
Copy a collection into a new workbook. schaapiee Excel Discussion (Misc queries) 1 February 9th 07 08:30 PM
adding a VBA name to workbook names collection brachistochrone Excel Programming 4 May 10th 06 12:58 PM
Workbook Collection Paul Larick Excel Programming 4 March 15th 05 09:02 PM
Retrieving the Collection of Ranges in a Workbook K Dales[_2_] Excel Programming 0 January 19th 05 09:16 PM
Retrieving the Collection of Ranges in a Workbook K Dales[_2_] Excel Programming 0 January 19th 05 09:16 PM


All times are GMT +1. The time now is 02:34 AM.

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

About Us

"It's about Microsoft Excel"