473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Suppress Excel Error Message in VB.NET Application

Dear All,

I'm writing a VB.NET application to automate the process in Excel file.

I wanna know how to suppress the prompting of Excel Error Message and write
to logfile instead.

Thanks & Best regards,

Fergus
Nov 20 '05 #1
3 2837
Hi,

The excel.application has a DisplayAlerts property which will
prevent excel from prompting the user.

Ken
--------------
"Fergus Cham" <fe*****@netvigator.com> wrote in message
news:OO****************@TK2MSFTNGP10.phx.gbl...
Dear All,

I'm writing a VB.NET application to automate the process in Excel file.

I wanna know how to suppress the prompting of Excel Error Message and write to logfile instead.

Thanks & Best regards,

Fergus

Nov 20 '05 #2
On Fri, 16 Apr 2004 10:53:45 +0800, "Fergus Cham" <fe*****@netvigator.com> wrote:

¤ Dear All,
¤
¤ I'm writing a VB.NET application to automate the process in Excel file.
¤
¤ I wanna know how to suppress the prompting of Excel Error Message and write
¤ to logfile instead.
¤

You can use Ken's suggestion to eliminate the application specific dialog boxes but you will also
want to use Try...Catch to trap and handle the run time errors.
Paul ~~~ pc******@ameritech.net
Microsoft MVP (Visual Basic)
Nov 20 '05 #3
oExcel.DisplayAlerts = False

"Fergus Cham" <fe*****@netvigator.com> wrote in message
news:OO****************@TK2MSFTNGP10.phx.gbl...
Dear All,

I'm writing a VB.NET application to automate the process in Excel file.

I wanna know how to suppress the prompting of Excel Error Message and write to logfile instead.

Thanks & Best regards,

Fergus

Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Otie | last post by:
I found the following under the GetObject help notes and in the example for GetObject: "This example uses the GetObject function to get a reference to a specific Microsoft Excel worksheet...
17
by: Ange T | last post by:
Hi there, I'm having pain with the VB behind an Access form. The form is used to create reports in Excel based on the details entered in the form. This has always worked without error on my...
8
by: mytfein | last post by:
Hi Everyone, Background: Another department intends to ftp a .txt file from the mainframe, for me to process. The objective is to write a vb script that would be scheduled to run daily to...
0
by: I Decker | last post by:
Hi all, Hope this is the right group. I am writing a program in c# to open create an excel document, enter some data, save it and then email it as an attachment. I have successfully created...
12
by: elziko | last post by:
I'm using late binding (I must) to automate Excel. My code opens Excel after createing and poulating some sheets. My problem is that when the user finally decides to close Excel its process is...
6
by: Rich Wallace | last post by:
Hi all, I have a VB app that runs and manages individual XLS files within a single COM object. Upon processing the final fie, I attempt to close out the EXCEL object and release it using...
5
by: mwazir | last post by:
Dear all, I have a .NET app that processes some excel file and it was working in all scenarios. Recently however we received excel files from a new client which my application has been unable...
2
by: ZeeHseez | last post by:
Hi, I have written a webbrowser application in VB .net Framework 1.1. I would like to suppress javascript error messages. However, the silent property of the webbrowser control suppresses the...
2
by: RohitGBhagwat | last post by:
Hi, I am New To ASP.Net and I have created a small application in ASP.Net using C# which is a reporting Tool. In this Application I have to Edit an Excel File on a Weekly basis and for that i am...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.