Solved

VSTO 2005 - Making managed spreadsheet visible

Posted on 2006-11-20
3
215 Views
Last Modified: 2013-12-03
Hi

In my VSTO 2005 project at startup I make the
spreadsheet part invisible using
Application.Visible = False

I have Windows form with a button on it that
I want to show the managed spreadsheet with.
How do I do this as
Application.Visible = True does not work
0
Comment
Question by:murbro
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
newyuppie earned 500 total points
ID: 17980197
what if you hide the worksheet instead of the entire application?

CType(Globals.ThisWorkbook.Sheets(1), Excel.Worksheet) _
    .Visible = Excel.XlSheetVisibility.xlSheetHidden

and to unhide
CType(Globals.ThisWorkbook.Sheets(1), Excel.Worksheet) _
    .Visible = Excel.XlSheetVisibility.xlSheetVisible
0
 

Author Comment

by:murbro
ID: 17987618
Thanks very much again. Spot on :)
0
 
LVL 13

Expert Comment

by:newyuppie
ID: 17987883
thanks for the points, glad it worked out for you!
NY
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 …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

914 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

16 Experts available now in Live!

Get 1:1 Help Now