Solved

Vb.Net - Excel Deleting Sheets

Posted on 2013-06-04
3
171 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
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…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now