Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / VS Tools for Office / February 2008

Tip: Looking for answers? Try searching our database.

VSTO newbie: how to call method in ThisWorkbook using button in Excel     2003?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stefan - 24 Feb 2008 17:09 GMT
Hi,

I'm just writing my first VSTO excel app. How can I call a method
defined in ThisWorkbook.vb? I created a button in my worksheet. Using
the click event I now want to call the method. But intellisense does
not show my method when I enter "ThisWorkbook."

Maybe I have been working too long this weekend and are just blind
now...

TIA,
Stefan
Stefan - 25 Feb 2008 07:51 GMT
After some hours of sleep, I found it myself:
Globals.ThisWorkbok lists all my public methods from ThisWorkbook.vb.

Now I face a new problem. Further down my code I get a COM exception
with HRESULT 0x800A03EC
Maybe I should go to bed again...

> Hi,
>
[quoted text clipped - 8 lines]
> TIA,
> Stefan
Stefan - 25 Feb 2008 22:24 GMT
Found the reason for the COM exception, too: one of the named ranges
had a typo.

> After some hours of sleep, I found it myself:
> Globals.ThisWorkbok lists all my public methods from ThisWorkbook.vb.
[quoted text clipped - 17 lines]
>
> - Zitierten Text anzeigen -

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.