Visual Studio Lightswitch

Status
Not open for further replies.

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
Deprecating VBA won't be possible for at least 10 years.

As far as building a new macro IDE, it's much much easier to do so on top of the VS platform than it would be within Office. (Quick spinoffs like this are a prime reason they invested in the VS2010 shell rewrite.) Bottom line, this product sounds like the right middle ground. Just need to ensure Lightswitch launches from the appropriate Office menus/ribbons once installed.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
As far as building a new macro IDE, it's much much easier to do so on top of the VS platform than it would be within Office. (Quick spinoffs like this are a prime reason they invested in the VS2010 shell rewrite.) Bottom line, this product sounds like the right middle ground. Just need to ensure Lightswitch launches from the appropriate Office menus/ribbons once installed.

Speaking as someone who has had to deal with this from the sharp end the 'CodeBehind' model used from VTSO/VSTA is so woefully inadequate at replacing the VBA bit you simply end up using both. This is madness as then you are constrained by both object models (which don't always match up) and have an awful debugging experience.

The managed app domain created was fragile, could not cleanly get at events on the main loop and had various tricksy issues with accessing/modifying large ranges of data and the app domain had to be finalised on startup (so no loading different dlls/version or anything fancy unless you relaunch your own child app domain(s) and talk through two layers (in the 2003 IIRC the way to get a VSTO add in in the same way you had VBA add ins was to hack some of the strings in the file and rename it to have the VBA add in extension.

Also the easiest way to have the VBA talk to the managed layer was a dirty trick (they basically acknowledged this and made it 'blessed' but that really was depressing). At the time you couldn't do UDF in VSTO, so you had to bridge it with VBA.

What VBA has is the ability to change it at runtime. I much prefer coding in c# but I have no illusions that a massive plus of VBA was being able to change it without restarting, and without a full VS install. The DLR wasn't about (or perhaps it was but not mature enough) to base a solution on but really they should consider making the part of it that is currently VBA be a DLR hosted very flexible layer that can talk to more formal VSTO app domains. Heck I would imagine you could implement the basics of VBA on the DLR if you wanted to. Obviously the little idiosyncrasies would not be easy (or desirable) to port but it really would be possible.

I've got no problem with them using the VS Shell as the UI for this, but they don't seem to realise the limitations of what they release (thus meaning VBA itself can't be deprecated, let alone removed)
 
Status
Not open for further replies.