Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8878135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:38:28+00:00 2026-06-14T19:38:28+00:00

Suppose I have the following set up in a WinForms application: Dim ExcelApp As

  • 0

Suppose I have the following set up in a WinForms application:

Dim ExcelApp As Microsoft.Office.Interop.Excel.Application
Dim ExcelWorkbook As Microsoft.Office.Interop.Excel.Workbook
Dim wksDataVals As Microsoft.Office.Interop.Excel.Worksheet

ExcelApp.Visible = False

Basically, I have an invisible instance of Excel running in the background with a workbook open in it called ExcelWorkbook and a sheet the app is manipulating called wksDataVals. And the user is manipulating this sheet (and others) via the userform and seeing some outputs based upon those manipulations.

Now, on my form I have a button Show Excel Sheet where, once the user clicks it, I want to show them a copy of wksDataVals in a new, standalone, workbook while keeping the original hidden in the background for further data manipulation. I believe that I need to do this by creating a new instance of Excel since I want to keep this one hidden.

Is there a better way to do this than:

  1. Saving the worksheet
  2. Creating a new (visible) instance of Excel
  3. Re-opening the worksheet in that instance

(Which can create an issue with the worksheet now only being read-only since I want it to stay open in the other Excel instance) – I know I can overcome this by re-saving the worksheet as a new name AGAIN, but this all seems like overkill.

Any ideas about how I can accomplish this in the easiest way?? – Maybe there’s a way to save the workbook / sheet internally and feed it to a new Excel instance rather than making Excel try and open a saved sheet??

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:38:29+00:00Added an answer on June 14, 2026 at 7:38 pm

    As an answer to my own question in case anyone out there happens to have the same question come up for them (please, experts, if you have a better way, let me know), what I ended up doing was:

    1. Create a new instance of Excel
    2. Create a blank new workbook in that instance
    3. Copy the Range I cared about from the hidden sheet
    4. Pasted it (Values and formatting in my case was all I wanted) onto the new workbook
    5. Made the new instance of Excel visible
    6. Set the reference to the new app instance, workbook, sheet, etc = nothing, so now it was no longer connected to my program.

    Seemed to do the trick wonderfully.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have the following: public class MyObject { public string Name {get; set;}
Suppose the following: I have a database set up on database.mywebsite.com , which resolves
Suppose I have the following two data structures: std::vector<int> all_items; std::set<int> bad_items; The all_items
Suppose I have the following line of code in html, how to set the
Suppose I have the following set up: Public Interface IA Property Name() Property Id()
Suppose I have a view with the following control (DataContext is properly set to
Suppose that I have the following HBM mapping: <class name=Student table=student> <set name=classes table=student_classes
Suppose I have a WPF application where I have the following architecture: [Worker Thread]
I am developing an application where i need the following requirement: Suppose i have
Suppose we have the following problem - we want to read a set of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.