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: 12
Default Unable to loop on Excel collections. Error 451.

Hi,

I encountered a strange issue on one of my customers's laptop.
My app (vb6) is working with Excel and is crashing on lines of code
like :

For each objSheet in MyWorkbook.Sheets

I tried 2 cases, when objSheet is defined as object or as worksheet,
it generates the error "Runtime error '451':
Property let procedure not defined and property get procedure did not
return an object".

I guess the sheets object is not considered as a collection and I'm
wondering why because my app is just working fine for any other user.
Some library corruption?

Thanks,

Olivier
 
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
A List of Collections and Custom Collections ExcelMonkey Excel Programming 1 December 20th 07 10:04 PM
UNABLE TO PUT IN A LOOP ali Excel Programming 1 July 29th 07 06:32 PM
Excel: Unable to trap 287 error with Outlook Security Dialog Lex[_2_] Excel Programming 0 March 9th 06 01:31 PM
Loop Function unable to loop Junior728 Excel Programming 1 July 28th 05 10:23 AM
Error boxes when opening Excel "unable to read file" then "open X. jppz Setting up and Configuration of Excel 1 February 19th 05 03:51 AM


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