ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Office 12 VBA (https://www.excelbanter.com/excel-programming/353118-office-12-vba.html)

spIky haIred

Office 12 VBA
 
Hi all,

I was wondering if anyone knew whether VBA would be supported in Excel
Office 12??
and also would the object models be the same?
how would the XML format for save files affect everything?

Thanks heaps,
Jason


NickHK

Office 12 VBA
 
Jason,
A quick Google on [Office 12 VBA] gives you a good start, but briefly:
Yes.
No exactly, it is a new version after all.
See http://blogs.msdn.com/brian_jones/ar...12/438262.aspx

NickHK

"spIky haIred" wrote in message
oups.com...
Hi all,

I was wondering if anyone knew whether VBA would be supported in Excel
Office 12??
and also would the object models be the same?
how would the XML format for save files affect everything?

Thanks heaps,
Jason




Bob Phillips[_6_]

Office 12 VBA
 
Much of the Excel object model will remain, worksheets, workbooks etc., but
much will change to accommodate the new features, such as the ribbon. It
will be interesting to see how much of the old code works, and how much
doesn't.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spIky haIred" wrote in message
oups.com...
Hi all,

I was wondering if anyone knew whether VBA would be supported in Excel
Office 12??
and also would the object models be the same?
how would the XML format for save files affect everything?

Thanks heaps,
Jason




spIky haIred

Office 12 VBA
 
Thanks Bob and Nick for your replies. Yes it will be interesting to see
how much of the old code works... it is something which I am a little
concerned about. Would this mean that if supporting older versions I
would need to write separate code (in some cases where the object model
has changed) for Office 12 and for Office 11 and earlier?

Bob Phillips wrote:

Much of the Excel object model will remain, worksheets, workbooks etc., but
much will change to accommodate the new features, such as the ribbon. It
will be interesting to see how much of the old code works, and how much
doesn't.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spIky haIred" wrote in message
oups.com...
Hi all,

I was wondering if anyone knew whether VBA would be supported in Excel
Office 12??
and also would the object models be the same?
how would the XML format for save files affect everything?

Thanks heaps,
Jason



NickHK

Office 12 VBA
 
Jason,
It's generally best to write your code on the oldest version you expect to
support.
Backwards compatibility that is "usually" honoured in newer versions ensures
your code still works.

If you need some functionality that only exists in newer versions, you will
need to check which version the code is running on and take appropriate
steps.

NickHK

"spIky haIred" wrote in message
oups.com...
Thanks Bob and Nick for your replies. Yes it will be interesting to see
how much of the old code works... it is something which I am a little
concerned about. Would this mean that if supporting older versions I
would need to write separate code (in some cases where the object model
has changed) for Office 12 and for Office 11 and earlier?

Bob Phillips wrote:

Much of the Excel object model will remain, worksheets, workbooks etc.,

but
much will change to accommodate the new features, such as the ribbon. It
will be interesting to see how much of the old code works, and how much
doesn't.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spIky haIred" wrote in message
oups.com...
Hi all,

I was wondering if anyone knew whether VBA would be supported in Excel
Office 12??
and also would the object models be the same?
how would the XML format for save files affect everything?

Thanks heaps,
Jason





Bob Phillips[_6_]

Office 12 VBA
 
I think the answer to that is that it is very likely that you will have to.
Backwards compatibility is fine, but as I see it the ribbon is so different
to commandbars that code that sets commandbars etc. just won't work.There is
conditional compiling though which eases the job.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spIky haIred" wrote in message
oups.com...
Thanks Bob and Nick for your replies. Yes it will be interesting to see
how much of the old code works... it is something which I am a little
concerned about. Would this mean that if supporting older versions I
would need to write separate code (in some cases where the object model
has changed) for Office 12 and for Office 11 and earlier?

Bob Phillips wrote:

Much of the Excel object model will remain, worksheets, workbooks etc.,

but
much will change to accommodate the new features, such as the ribbon. It
will be interesting to see how much of the old code works, and how much
doesn't.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spIky haIred" wrote in message
oups.com...
Hi all,

I was wondering if anyone knew whether VBA would be supported in Excel
Office 12??
and also would the object models be the same?
how would the XML format for save files affect everything?

Thanks heaps,
Jason





spIky haIred

Office 12 VBA
 
Hi again Bob and Nick,
Thanks again for your help on this topic. I think it will be
interesting for all VBA developers once the new Office 12 is released.
When are Microsoft anticipating it will be released? Also I don't know
much about the ribbon but is that the "command bar" that will be
replacing the old one? I agree with you there Bob, I think much of the
code there will change. Can I ask what "conditional compiling" is? I
was thinking of handling command bar related code with a check on which
version of Excel the user was running and executing the relevant block
of code accordingly... What kind of applications do both of you
develop?
Cheers :)


spIky haIred

Office 12 VBA
 
I was also considering to download the Office 12 beta... have either of
you done that to have a play around? I wonder if it would be
worthwhile? Thanks again guys.


Bob Phillips[_6_]

Office 12 VBA
 
"spIky haIred" wrote in message
ups.com...
Hi again Bob and Nick,
Thanks again for your help on this topic. I think it will be
interesting for all VBA developers once the new Office 12 is released.
When are Microsoft anticipating it will be released?


It certainly will be! AFAIK, MS are anticipating late 2006 but they still
have much testing to do yet, and so no date has yet been announced.

Also I don't know
much about the ribbon but is that the "command bar" that will be
replacing the old one? I agree with you there Bob, I think much of the
code there will change.


You can read about it on Jensen's blog at
http://blogs.msdn.com/jensenh/archiv...17/493890.aspx

Can I ask what "conditional compiling" is? I
was thinking of handling command bar related code with a check on which
version of Excel the user was running and executing the relevant block
of code accordingly...


Conditional compiling is where you create different code for multiple
situations, such as multiple versions, where you want the code to behave
differently in one situation to another. For instance, very simplistically,

#IF Ver12 Then
myVar = "this is running in Office 12"
#Else
myVar = "this is running pre-Office 12"
#End If

where Ver12 is a conditional variable that can either be defined in your
code declaratives, like this

#Const Ver12 = True 'False when compiling for pre-Office 12

or set in the project properties.

It is very useful, as the code than is it the True conditiojn is compiled,
the rest is ignored.

What kind of applications do both of you
develop?


I develop all sorts of apps, from stand-alone spreadsheets, to full apps,
using VBA, VB, Access, SQL-Server, ASP, etc.



Bob Phillips[_6_]

Office 12 VBA
 
I have seen the Beta, and played with it. I love it and hate it equally at
different times <vbg. If you are able to get on the programme, it could be
interesting, but be aware it is a Beta, and it is very different.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spIky haIred" wrote in message
ups.com...
I was also considering to download the Office 12 beta... have either of
you done that to have a play around? I wonder if it would be
worthwhile? Thanks again guys.




spIky haIred

Office 12 VBA
 
Hi Bob, the ribbon looks pretty good, what did you think of it when you
played around in the beta? An improvement over the commandbars?
I have had a read of jensen's blog and learned more about the ribbon
now, thanks for sending me the link. Also thanks for answering my
question on conditional compiling, I wasn't too sure what the term
meant but had a feeling that it was something along those lines... I
develop a range of taxation products using Excel VBA :)


Bob Phillips[_6_]

Office 12 VBA
 
I am ambiguous at the moment. There are lots of good things, it is more
dynamic, a better paradigm, but it is difficult to find many things, and it
is not as configurable as I like.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"spIky haIred" wrote in message
oups.com...
Hi Bob, the ribbon looks pretty good, what did you think of it when you
played around in the beta? An improvement over the commandbars?
I have had a read of jensen's blog and learned more about the ribbon
now, thanks for sending me the link. Also thanks for answering my
question on conditional compiling, I wasn't too sure what the term
meant but had a feeling that it was something along those lines... I
develop a range of taxation products using Excel VBA :)





All times are GMT +1. The time now is 04:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com