Solved

Vb.Net - Excel Deleting Sheets

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

708 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

11 Experts available now in Live!

Get 1:1 Help Now