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

  • Home
  • SEARCH
  • 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 522819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:23:37+00:00 2026-05-13T08:23:37+00:00

as a workaround for the Locale bug in Office Interop I wanted to use

  • 0

as a workaround for the Locale bug in Office Interop I wanted to use VSTO but if I call

app.ActiveWorkbook.GetVstoObject()

then it returns nothing. I’m working from a .NET 2.0 Visual Basic Application project. This is not an add in or a special VSTO project. I have added the required Imports and References.

Dim app As New Excel.Application
app.Caption = "Rapport"
app.Visible = True
app.Workbooks.Add()
Dim tmp As Object = app.ActiveWorkbook.VBProject

Dim book As Workbook = app.ActiveWorkbook.GetVstoObject() 'Returns Nothing

This is a school project and it needs to be finished by the end of next week so any fast help is very much appreciated.

  • 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-05-13T08:23:37+00:00Added an answer on May 13, 2026 at 8:23 am

    This appears to be “By Design”. The documentation for GetVStoObject states it will return Nothing in the case that the excel worksheet is a not a Visual Studio Tools For Office Excel Worksheet

    • http://msdn.microsoft.com/en-us/library/microsoft.office.tools.excel.worksheet.getvstoobject.aspx

    You’re going to need to create an explicit Excel Worksheet Project in order to have this method return meaningful data .

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

Sidebar

Related Questions

Is there any workaround for the following 1 pixel to the left bug? <!DOCTYPE
I found a workaround for this error, but am now really curious as to
I have an odd bug where my code returns a file not found exception
This may be a bit obscure, but I'm developing a viewer app that chunks
We can declare functions inside functions (I wanted a local variable, but it parses
WorkAround: I have declared a class level Public static variable and initialized with a
Maybe someone found a workaround for the following problem: It seems as if AXIS
I want to workaround the Webpage has expired issue. First, I just changed a
Is there any workaround to allow actionscript3 write to file system without adobe air?
Is there any Workaround/Tool for renaming the Resource Keys from the resource file .

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.