Jon said:
Surely, a future version of office could be made such that it could use
either VBA or VBA.net. All that would be needed is an option statement in
the code.
I don't know anything about .net, but from what a couple of people have
told me, it's superb. So it would be foolish of Microsoft to not offer
VBA.net.
If it was a simple as offering an Option statement, then they would have
done it for VB.
The problem is that Microsoft significantly changed the syntax between VB6
and VB.NET in all sorts of ways that quite frankly have nothing at all to do
with compatibility with the platform. VB.NET is for all practical purposes a
new language, with a new syntax, a new IDE, a new Forms library, a new
runtime, a new object library and a new event model.
It might be that in doing so, they have created a better language. But it is
undeiable that it is a different language.
Many of those who have built substantial applications in VB6 report that it
is impractical to upgrade to VB.NET without rewriting most of it. Microsoft
AntiSpyware (which they acquired when the bought Giant) was written inj VB6.
Microsoft are not even attempting to use their own migration tool on to
convert the code to VB.NET, but instead are rewriting the entire application
in C++.
Now, if a VBA.NET were to come out, it is likely that there would be as many
migration problems as there are between VB6 and VB.NET. If VBA.NET comes out
in parellel with VBA, then there will be little incentive for people to
extend their code in VBA.NET because they will gain little or nothing for
their efforts. If VBA.NET were to come out replacing VBA, then there would
be little incentive for large companies to pay for the upgrade to Office,
since they would have to factor in the cost of rewriting every bit of VBA
code that anybody has written or recorded anywhere in the organisation.
--
Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition
www.classicvb.org