LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #15   Report Post  
Posted to microsoft.public.vstudio.general,microsoft.public.dotnet.framework.interop,microsoft.public.dotnet.general,microsoft.public.office.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default How do I access different versions of Excel from one .NET executable?

In article , John Brock wrote:
Very interesting!!! I knew about reflection and late binding, but
it didn't occur to me that they could be used for this. (I assume
this method will work just as well for VB.NET as for C#)?


It does for VB and VBA. Unless they've crippled VB.NET for some obscure
reason, it should work.

Yes, coding would be ugly. I would especially miss Intellisense.


Again, I don't know how you'd do it in .Netspeak but in VB/VBA, you can:

Dim oSlide as PowerPoint.Slide
'Dim oSlide as Object

Write your code using Intellisense, then when it's all working, move the
apostrophes around in your declaration so you have:

'Dim oSlide as PowerPoint.Slide
Dim oSlide as Object

Instant late-binding w/o the Ugly.





 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How Do I Run An Executable from Excel? [email protected] Excel Programming 1 October 28th 08 05:09 PM
Excel into executable MrBT Excel Worksheet Functions 2 May 1st 08 03:05 AM
Reference different versions of Access Noemi Excel Programming 2 November 13th 07 06:31 AM
Can't load Excel Executable rickSA007 Setting up and Configuration of Excel 0 June 28th 06 11:50 AM
Excel file as an executable? James Excel Programming 4 September 7th 05 08:51 PM


All times are GMT +1. The time now is 05:49 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"