Solved

Vb.Net - Excel Deleting Sheets

Posted on 2013-06-04
3
173 Views
Last Modified: 2013-06-07
Good Day Experts!

I have an application here with a TabControl and 21 tabs.  The majority of them output to Excel from a DataGrid. Behind the ExcelOutput button click, I delete the 2 extra sheets that aren't needed before I make the spreadsheet visible.  When I run it locally here in my development environment, I am not prompted with the "Are you sure you want to delete this sheet" messagebox.  However, when I publish it, the User is prompted for each sheet.

Is there a way for them to not see the messages?

Thansk,
jimbo99999
0
Comment
Question by:Jimbo99999
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Alexander Eßer [Alex140181] earned 500 total points
ID: 39220303
I suppose, you've done this before calling the delete method (I know, this may be "stupid" question) ;-)

    Application.DisplayAlerts = False

Open in new window

0
 

Author Comment

by:Jimbo99999
ID: 39220326
Hello, thanks for repsonding.  I have not done that...I never knew about it.  I will try it.
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 39220340
BUT: set back to True once you've done your "work" ;-)
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with error when uploading excel file 3 40
Disable extension 8 48
Passing data between Forms 3 20
Crystal reports login after closing form 3 18
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question