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: 5
Default Disabling Error Messages

Hi Group,

I'm just trying for the first time to use the 'Excel Object Library' from
VB6.

I'm using Excel 2002 (Microsoft Excel 10 Object Library)

I have some code similar to the following:

Dim excelApp As Object 'Excel.Application

Set excelApp = CreateObject("EXCEL.APPLICATION")
excelApp.Visible = False
Call excelApp.Workbooks.Open("c:\temp\SomeExcelFile.xls ", False, True)

My problem is this:
Some of the Workbooks that I need to open may contain some invalid code
modules (I can't do anything about this, I didn't create the Excel files)
and when the WorkBooks.Open command gets executed, I get a messagebox from
the App object: 'Compile Error in hidden module : someModule <OK <HELP'

Does anyone know a way that I can avoid these messageboxes popping up? (The
fact that there are some compile errors in the code has no bearing on what I
am trying to do with this application, so I really want to completly ignore
them, but if necessary, I don't mind handling the error and doing somthing
with it, I just don't want these boxes pinging up in the middle of my
application!!)

Thanks,

ChrisM


 
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 Messages msao Excel Worksheet Functions 4 November 17th 09 04:55 PM
Name error messages... Corkey Excel Worksheet Functions 3 December 31st 07 07:11 PM
Excel hyperlinks - disabling warning messages Larry Links and Linking in Excel 1 July 29th 07 02:22 AM
Error Messages Kathy Excel Discussion (Misc queries) 9 May 16th 06 03:01 PM
Disabling messages from Project Taras Excel Programming 2 November 28th 03 01:46 PM


All times are GMT +1. The time now is 06:42 AM.

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"