Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VSTO 2005 - Making managed spreadsheet visible

Posted on 2006-11-20
3
Medium Priority
?
236 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:Murray Brown
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
newyuppie earned 2000 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:Murray Brown
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

916 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