PC Review


Reply
Thread Tools Rate Thread

2000 -> 2007: gotchas?

 
 
Auric__
Guest
Posts: n/a
 
      13th Dec 2011
I've acquired a copy of Office 2007. Up to now, I've been using Office 2000.
As far as VBA goes, are there any major "gotchas" I need to be aware of? Or
should my 2000 code "just work" under 2007? (Specifically Excel; I don't
usually program for the rest of the Office suite, but I program the hell out
of Excel.)

--
Everyone slaps one another with fish.
 
Reply With Quote
 
 
 
 
GS
Guest
Posts: n/a
 
      13th Dec 2011
Auric__ pretended :
> I've acquired a copy of Office 2007. Up to now, I've been using Office 2000.
> As far as VBA goes, are there any major "gotchas" I need to be aware of? Or
> should my 2000 code "just work" under 2007? (Specifically Excel; I don't
> usually program for the rest of the Office suite, but I program the hell out
> of Excel.)


Given the support for backward compatibility that XL12 has, your XL9
projects will work just fine. My first VBA projects were XL9 and they
still work in XL12. I don't service those early projects much anymore,
but later editions have been upgraded to make use of Excel's evolving
features/functionality.

However, there's a lot of changes beyond XL9 that you'll most likely
WANT to code for so your projects can take advantage of the newer
features and functionality.

The only 'gotcha' I encountered was dictator apps no longer replacing
the menubar since it was replaced by the Ribbon. Another 'gotcha' is
that XL12+ doesn't support 'floating' toolbars and so you'll need to
rework how to handle those if your projects use them. All custom
toolbars/menus will be allocated to the Addins tab of the Ribbon. You
may want to make your own custom tabs or manipulate the Ribbon to suit
your project needs. In this case, I strongly recommend Ron De Brun's
MSO Ribbon solutions.

Best wishes in your endeavours...

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
Reply With Quote
 
GS
Guest
Posts: n/a
 
      13th Dec 2011
I apologize for the mispelling...

...I strongly recommend *Ron de Bruin's* MSO Ribbon solutions.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


 
Reply With Quote
 
Auric__
Guest
Posts: n/a
 
      13th Dec 2011
GS wrote:

> Auric__ pretended :
>> I've acquired a copy of Office 2007. Up to now, I've been using Office
>> 2000. As far as VBA goes, are there any major "gotchas" I need to be
>> aware of? Or should my 2000 code "just work" under 2007? (Specifically
>> Excel; I don't usually program for the rest of the Office suite, but I
>> program the hell out of Excel.)

>
> Given the support for backward compatibility that XL12 has, your XL9
> projects will work just fine. My first VBA projects were XL9 and they
> still work in XL12. I don't service those early projects much anymore,
> but later editions have been upgraded to make use of Excel's evolving
> features/functionality.
>
> However, there's a lot of changes beyond XL9 that you'll most likely
> WANT to code for so your projects can take advantage of the newer
> features and functionality.


I'll probably want it to still work under 2000, since I have multiple copies
of that, but only one copy of 2007. (If necessary, I will use the methods
from the current "Compiling Error in Earlier Version of Excel" thread, but I
don't expect to need to.)

> The only 'gotcha' I encountered was dictator apps no longer replacing
> the menubar since it was replaced by the Ribbon. Another 'gotcha' is
> that XL12+ doesn't support 'floating' toolbars and so you'll need to
> rework how to handle those if your projects use them. All custom
> toolbars/menus will be allocated to the Addins tab of the Ribbon. You
> may want to make your own custom tabs or manipulate the Ribbon to suit
> your project needs. In this case, I strongly recommend Ron De Brun's
> MSO Ribbon solutions.


As it happens, my VBA in Excel deals almost exclusively with number crunching
and displaying the results. What little remains typically deals with
crunching non-numeric data, custom sorting, and the like, and *nothing* of
mine involves custom menus, toolbars, etc. Not even forms. (I don't even make
custom whatevers for my own use.)

> Best wishes in your endeavours...


Same to you, sir.

--
This is between us and the chickens, Ma'am,
and I'm going to ask real nicely that you stay out of it.
 
Reply With Quote
 
Jim Cone
Guest
Posts: n/a
 
      13th Dec 2011
Also, the color system is different, many colors are going to look strange.
For instance, ColorIndexes have been sabotaged - using "Color" not "ColorIndex" will get you further
along.
Please don't ask me to explain the new system, I can't.
'---
Jim Cone
Portland, Oregon USA
http://www.mediafire.com/PrimitiveSoftware
(free and commercial excel programs)





"Auric__" <(E-Mail Removed)> wrote in message
news:Xns9FB9C4CBBFBFBauricauricauricauric@88.198.244.100...
> I've acquired a copy of Office 2007. Up to now, I've been using Office 2000.
> As far as VBA goes, are there any major "gotchas" I need to be aware of? Or
> should my 2000 code "just work" under 2007? (Specifically Excel; I don't
> usually program for the rest of the Office suite, but I program the hell out
> of Excel.)
>
> --
> Everyone slaps one another with fish.



 
Reply With Quote
 
Auric__
Guest
Posts: n/a
 
      13th Dec 2011
Jim Cone wrote:

> "Auric__" <(E-Mail Removed)> wrote in message
> news:Xns9FB9C4CBBFBFBauricauricauricauric@88.198.244.100...
>> I've acquired a copy of Office 2007. Up to now, I've been using Office
>> 2000. As far as VBA goes, are there any major "gotchas" I need to be
>> aware of? Or should my 2000 code "just work" under 2007? (Specifically
>> Excel; I don't usually program for the rest of the Office suite, but I
>> program the hell out of Excel.)

>
> Also, the color system is different, many colors are going to look
> strange. For instance, ColorIndexes have been sabotaged - using "Color"
> not "ColorIndex" will get you further along.
> Please don't ask me to explain the new system, I can't.


That good, huh?

Luckily, I can't think of any instances where my code uses any specfic
colors. About the only text formatting I do use are Bold and (rarely) Italic.
I might bump the font size up, but that's *very* rare.

--
No one ever conquered the world using a beta version.
 
Reply With Quote
 
Martin Brown
Guest
Posts: n/a
 
      13th Dec 2011
On 13/12/2011 02:20, Auric__ wrote:
> I've acquired a copy of Office 2007. Up to now, I've been using Office 2000.
> As far as VBA goes, are there any major "gotchas" I need to be aware of? Or
> should my 2000 code "just work" under 2007? (Specifically Excel; I don't
> usually program for the rest of the Office suite, but I program the hell out
> of Excel.)


A longish list but they are mostly pretty obscure features that you may
not actually use. Certain dialogues for file find withdrawn etc.

Main ones that forced me to fork the code are gratuitous changes to
graphics objects coordinates and colours together with a bunch of
interesting race conditions if you ever draw large numbers of graphs
from VBA. Basically stuff that works fine before XL2007 is broken in the
later versions and for good measure some of the improvements in XL2010
put it back to how it was before. There are work arounds for all of it.
XL2007 can be glacially slow for larger datasets and now has to display
an estimated time to completion to stop users thinking it has crashed.
The same operations on XL2003 took under 5 seconds.

It is better now after the SPs than it was out of the box originally.

Defaults for charts are awful in XL2007 unless you like the drawn by a
kid with a wax crayon look for your business graphs. And to add insult
to injury customising charts makes them *even* slower to draw.

The macro recorder in XL2007 is wrecked and completely FUBAR.

I expect others will chime in with more examples of gotchas.

Why move to 2007 at this stage when XL2010 is out?

Regards,
Martin Brown
 
Reply With Quote
 
Auric__
Guest
Posts: n/a
 
      14th Dec 2011
Martin Brown wrote:

> On 13/12/2011 02:20, Auric__ wrote:
>> I've acquired a copy of Office 2007. Up to now, I've been using Office
>> 2000. As far as VBA goes, are there any major "gotchas" I need to be
>> aware of? Or should my 2000 code "just work" under 2007? (Specifically
>> Excel; I don't usually program for the rest of the Office suite, but I
>> program the hell out of Excel.)

>
> A longish list but they are mostly pretty obscure features that you may
> not actually use. Certain dialogues for file find withdrawn etc.
>
> Main ones that forced me to fork the code are gratuitous changes to
> graphics objects coordinates and colours together with a bunch of
> interesting race conditions if you ever draw large numbers of graphs
> from VBA. Basically stuff that works fine before XL2007 is broken in the
> later versions and for good measure some of the improvements in XL2010
> put it back to how it was before. There are work arounds for all of it.
> XL2007 can be glacially slow for larger datasets and now has to display
> an estimated time to completion to stop users thinking it has crashed.
> The same operations on XL2003 took under 5 seconds.
>
> It is better now after the SPs than it was out of the box originally.


....interesting.

> Defaults for charts are awful in XL2007 unless you like the drawn by a
> kid with a wax crayon look for your business graphs. And to add insult
> to injury customising charts makes them *even* slower to draw.


Fortunately, I only have 2 spreadsheets with any kind of charts, and those
are both just simple line graphs. Actually... I use one of them to estimate
future needs. I'll have to see if that's changed any.

> The macro recorder in XL2007 is wrecked and completely FUBAR.


Luckily, I rarely need it.

> I expect others will chime in with more examples of gotchas.
>
> Why move to 2007 at this stage when XL2010 is out?


Money. I don't spend my own on office software; I use what I have until
someone else pays for a new version for me. Usually it's work, but this time
my sister-in-law got 2010 for herself, so I got her copy of 2007.

--
You never keep any of your promises.
 
Reply With Quote
 
Tim Williams
Guest
Posts: n/a
 
      14th Dec 2011
Changed in XL2007: copying a sheet via code no longer makes the copy
the ActiveSheet.

That's the only issue I've encountered which broke older code.

Tim


On Dec 12, 6:20*pm, "Auric__" <not.my.r...@email.address> wrote:
> I've acquired a copy of Office 2007. Up to now, I've been using Office 2000.
> As far as VBA goes, are there any major "gotchas" I need to be aware of? Or
> should my 2000 code "just work" under 2007? (Specifically Excel; I don't
> usually program for the rest of the Office suite, but I program the hell out
> of Excel.)
>
> --
> Everyone slaps one another with fish.


 
Reply With Quote
 
Auric__
Guest
Posts: n/a
 
      14th Dec 2011
Tim Williams <(E-Mail Removed)> wrote:

> Changed in XL2007: copying a sheet via code no longer makes the copy
> the ActiveSheet.
>
> That's the only issue I've encountered which broke older code.


Not something I do via code anywhere, but I'll bear it in mind. Thanks.

--
If the law is not upheld equivalently it is worthless, as are its upholders.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:22 PM.