Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×
Upgrades Businesses Microsoft Apple

VBA Going Away, Macs Now, PCs Soon 255

Nom du Keyboard writes "As Microsoft drops support for older Office file formats, it looks like Visual Basic for Applications is also going soon. Mac Office 2008 has dropped VBA in favor of enhanced support for AppleScript, and Office 2009 is scheduled to lose it in favor of Mac incompatible Visual Studio Tools for Applications (VSTA) or Visual Studio Tools for Office (VSTO). This sounds like the Mother of All Backwards and Cross-Platform Incompatibilities — especially since there appears to be no transition period where both the old and new scripting languages will be simultaneously supported. And as past experience with Visual Studio .NET has shown, upgrade tools are far less than perfect."
This discussion has been archived. No new comments can be posted.

VBA Going Away, Macs Now, PCs Soon

Comments Filter:
  • Cross Platform? (Score:4, Interesting)

    by MightyYar ( 622222 ) on Tuesday January 15, 2008 @04:06PM (#22055998)
    So my only cross platform choice for scripting office applications is now OO.org? Sweet Jesus! MS, WTF?
  • Microsoft Tools... (Score:3, Interesting)

    by RocketScientist ( 15198 ) * on Tuesday January 15, 2008 @04:19PM (#22056254)
    So yeah. VBA is going away. I wrote a bunch of VBA many years ago (hey, I was young and needed the money :P), now when the version of office it's running under isn't security patched anymore that code's either tossed or re-written from scratch.

    And DTS, Data Transformation Services, is already gone. Doesn't work under 64-bit editions of SQL Server 2005. The upgrade tool is worthless. However I did learn something between VBA and when DTS shipped, and I didn't ever get on the DTS bandwagon. So all the bailing-wire-esque scripts I wrote using T-SQL, script files, and Perl to do file formatting that I wrote 8 years ago will keep running forever, while the DTS stuff that someone wrote last year won't work now.

    Choose your tools carefully, and work as low as you can, but no lower.
  • by alexhs ( 877055 ) on Tuesday January 15, 2008 @04:23PM (#22056352) Homepage Journal
    I find it amazing how MS is eager to cut the branch it's sitting on these times.
    I thought VBA was one of the major reasons for businesses to not switch to alternatives : because they developped in-house lots of VBA code to achieve some tasks, that would tie them to the MS-Office suite.
  • by Anonymous Coward on Tuesday January 15, 2008 @04:24PM (#22056376)
    Once upon a time I wrote a bunch of stuff in VB 2 (iirc). Then they dropped support for that and I had to upgrade. It didn't go well. I pretty much had to rewrite everything or have code that I couldn't distribute.

    Now, most of what I write is in Java, Javascript, Python, anything but VB. Microsoft sure knows how to win friends and influence people.
  • Re:Die Visual Basic (Score:5, Interesting)

    by I8TheWorm ( 645702 ) * on Tuesday January 15, 2008 @04:47PM (#22056832) Journal
    Only less than fully informed because I didn't qualify it.

    The rewrite projects I've seen regarding VB to [insert your own language of choice here] seem to be wrapped around a common theme... unsupportable code. While I'm sure there are plenty of enterprise level applications out there written in VB and well-written, the majority of what I've seen takes form level code and spaghetti to a whole new level.

    My only guess as to why this happens with such frequency is the environment in the late 90s where there were more jobs than programmers, too many "Sam's Teach Yourself Visual Basic in 21 Hours" books, and a lack of architecural knowledge leading VB teams down the path of no return.

    What many companies are left with are legacy apps that nobody wants to support, much less enhance. And with webServices, AJAX and all that is Web 2.0, and a bevy of other technologies that people want to utilize, enhancing kludgy enterprise VB apps with no architecture tends to be more expensive than a proper rewrite.

    A funny note: I'm currently contracted to a company that lost all of it's Java/Jade developers when part of the company was sold. In an effort to get the software on supported technology, phase 1 of this project is to reverse engineer the (completely undocumented) application and recreate it in C#. No changes allowed, regardless of best practices. Phase 2 is to completely rewrite it. By reading this could you guess this company is in the oil and gas industry?
  • Typical (Score:5, Interesting)

    by GreatDrok ( 684119 ) on Tuesday January 15, 2008 @04:49PM (#22056900) Journal
    All the UNIX skills I developed over the last 20 years are still useful. So glad I haven't bothered to spend any time on the MS treadmill. Heck, all the software I wrote over the last 20 years can still be compiled and runs happily on a modern machine that is hundreds of times faster than the SPARCstation 1 I used to run on.

    Do you think the PHBs will ever learn that using proprietary systems like Windows may seem cheaper in the short term but in the long run you open your wallet and let them take take take?
  • Re:Cross Platform? (Score:2, Interesting)

    by arotenbe ( 1203922 ) on Tuesday January 15, 2008 @04:51PM (#22056944) Journal

    Microsoft's new motto is, "Finding new ways to alienate paying customers, one day at a time".
    I'm waiting for them to start suing their own customers... oh, wait, the music industry has already tried that.
  • Re:Cross Platform? (Score:3, Interesting)

    by risk one ( 1013529 ) on Tuesday January 15, 2008 @05:09PM (#22057270)
    Does ODF have a scripting language defined? That would be a perfect selling point. Switch all your complicated macro-based documents to ODF and this will never happen again.
  • by strcpy(NULL,... ( 1089693 ) on Tuesday January 15, 2008 @05:33PM (#22057596)
    MS is not trying to improve their product by removing/upgrading VBA.. They just want to kill Mac. By providing different scripting languages for the two platforms, they are going to eliminate Macs from being used for business. Since most of your customers don't have Macs, you can't use a Mac to write a document with macros in it. So, you have to buy Windows.
  • by jollyreaper ( 513215 ) on Tuesday January 15, 2008 @05:47PM (#22057826)
    How in the hell are businesses supposed to keep up with this shit? Ok, back in the day everybody was using midrange computers. End users were either sitting at terminals or were later at PC's with terminal emulation. Programs were written once and then maintained for decades. Whenever the midrange or mainframe was updated, all of the old stuff worked but now you could create new stuff to take advantage of greater speed, memory, features, etc. This is a proper and correct understanding of the past, yes?

    So how in the fucking christ are companies supposed to operate today? Operating systems are only sold for several years and then the new one comes out. The what, five year stretch for XP, that's an anomaly, MS wants to churn it faster. So you have new operating systems and thus new bugs for the client app, and legacy apps for shit like Office will be completely horked. The old standby of "Well, we just won't upgrade for a bit, give us time to write something new," that becomes harder because you can't buy the old softare anymore. Even if you say fuck it, I'm going to pirate it, eventually the new hardware won't have driver support for the old OS.

    From what I see, my perspective only being on the periphery of the programmers, it looks like anyone tightly wedded to Microsoft products will be doing the upgrade shuffle every few years and have to rewrite lots and lots of code.

    I agree with the other posters, this sounds like a huge win for open source but a completely incomprehensible move for Microsoft. Where the hell is the bonus here for them? Normally I can see the evil, malicious genius in their actions but since Vista I'm at a loss, it just seems like stupid evil now.
  • Re:Time for Java (Score:3, Interesting)

    by teknopurge ( 199509 ) on Tuesday January 15, 2008 @05:50PM (#22057854) Homepage
    That 4MB was from an old dev article. my bad! It's surely not the factious 500MB behemoth the other poster mentioned...

    You are 100% correct on the C code speed comment. However, my point is that with all that optimization you need to do work to move it from one platform to the next. While JITs have been getting faster, and CPUs keep getting faster, the value proposition to write uber-fast C code instead of spending more time on application features is shrinking.......

    Regards,
  • by Anonymous Coward on Tuesday January 15, 2008 @07:57PM (#22059748)
    I'm choosing to ignore your nonsense rhetoric pining after the wonderful days of the mainframe--you're welcome to it. As for the perceived incomprehensibility of this move by Microsoft on the part of /. readers, the terrible summary is somewhat at fault. The summary makes it appear that this crime against humanity will be perpetrated without a moment's notice to corporate macro fans everywhere. In reality, VSTO (Visual Studio Tools for Office--the replacement technology in question) has been around since 2003. I've been making a living writing VSTO "document customizations" in C# for three years, and the security, maintainability, and functionality is leaps and bounds ahead of macros. When Office 2007 came out, all of my code worked flawlessly, including some very questionable UI stuff that I didn't expect would hold together. The runtime for VSTO is maintained separately from Office, so it can be revised and updated without needing to be part of the Office release cycle. When I created my first VSTO document a few years ago, I knew it wouldn't be long before Microsoft was tempted to completely abandon the VBA model. Transferring its role to the .Net sandbox is much better for users and developers than continually limiting and disabling VBA to fix its many security problems.
  • by Mongoose Disciple ( 722373 ) on Tuesday January 15, 2008 @08:55PM (#22060358)
    Honestly, I think you have it backwards. The combination of Office 2007 and VSTO is the only thing that seems, to me, like a killer app out of this generation of MS stuff. Anything they can do to nudge more people to get rolling on it is probably smart.

    First, take as a given the ubiquity of Office (outside of slashdot-land). I've worked as a consultant in dozens of different companies with a wide variety of platforms. Some of them were, codewise, Microsoft shops, sure. Lots were Java shops full of people that sneered at all things VB/.NET or Microsoft in the development world. Several based their whole business in ancient technologies such as COBOL or RPG. Some had half their staff using Macs. Some didn't have much technology presence at all. But damned if 100% of those companies weren't using Word and Excel, and nearly all were using Outlook.

    You now can write apps that sit within one (or more) of the Office apps, integrate seamlessly with their UI, are visually appealing, and interact with their data -- and it's, if not VBA easy, still stupid easy. A lot more is exposed API-wise to developers from Office than ever has been.

    Suppose you've got a pre-existing manufacturing company with some kind of database of their sales used by existing applications. Maybe it's in SAP, maybe it's in an Oracle database. Whatever. Imagine you could write an application for their customer service people that would sit in Outlook and, any time they got an e-mail from one of their clients, would load up information on their sales history or other information from the database that would help them do their job and display it in a resizable/configurable panel that could be moved or interacted with like any of the native panels in Outlook.

    Or imagine if you could write an add-in for Excel that would recognize certain kinds of spreadsheets the company frequently had to manipulate, and would helpfully add a button to the Excel UI to perform some specialized common task on that type of spreadsheet.

    Imagine if this was the kind of thing that someone who knew what they were doing could write in about an hour, and any moderate programmer with passable .NET familiarity could write in a day or so.

    This isn't the kind of thing that really impresses programmers, but it's the kind of application that, once less technical business people see in action, they don't want (most of) their business applications written any other way. Sure, not everything logically ties in to one or more of the Office suite, but an awful lot does. I've seen and worked on countless applications for businesses that had an Excel spreadsheet either as input or output, or that their users would load up when they got an e-mail from a customer, use it to do some calculations, and then send an e-mail back.

    I think once Joe Business Middle-Manager sees this stuff and realizes they can only get it with Office, Microsoft could charge them five times as much for Office and they'd still pay it. Worse, in a lot of cases that would actually be the smart choice because the productivity gains would make up the cost and then some!

    Obviously, you can customize Open Office. Obviously, there's stuff in the Java world to do a lot of these things, too... but if you want to write an application that works with Office, and do so quickly and easily, VSTO is going to be the way you do it. I haven't personally seen alternatives for other platforms that are going to give half as much result in twice the time. This is the VB revolution/plague of RAD come again.
  • by Arterion ( 941661 ) on Wednesday January 16, 2008 @01:16AM (#22062870)
    Access is heavily VBA dependent, much more than the rest of the suite. In fact, using VSTO, you can write code for all the other Office applications in .NET, but not Access. VBA is sortof a cornerstone for Access. I also wonder what this means for Windows Script Host. A lot of companies have a lot of .vbs scripts and the like out there doing important stuff. I know I end up writing WSH scripts in VBA to do routine things all the time. I really need to get into the habit of using Perl, I guess...

Stellar rays prove fibbing never pays. Embezzlement is another matter.

Working...