PC Review


Reply
Thread Tools Rate Thread

How can I test in VBA what edition of Office a user is running

 
 
=?Utf-8?B?SHlwZXJuaWthbw==?=
Guest
Posts: n/a
 
      5th Jun 2007
Using Excel 2003 I created a spreadsheet using XML import and export. The
help information says the following on the XML features in Excel 2003:

* Note XML features, except for saving files in the XML Spreadsheet
format, are available only in Microsoft Office Professional Edition 2003 and
Microsoft Office Excel 2003.

I'd want to inform the user whether the XML features will work or not.
Using "Application.Version" I get the Excel version.

Does anyone know how to test the office edition in VBA?
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      5th Jun 2007
If val(application.Version)>10 Then
MsgBox "XML works"
End If

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Hypernikao" <(E-Mail Removed)> wrote in message
news:B2F613C2-9138-4321-98AD-(E-Mail Removed)...
> Using Excel 2003 I created a spreadsheet using XML import and export. The
> help information says the following on the XML features in Excel 2003:
>
> * Note XML features, except for saving files in the XML Spreadsheet
> format, are available only in Microsoft Office Professional Edition 2003
> and
> Microsoft Office Excel 2003.
>
> I'd want to inform the user whether the XML features will work or not.
> Using "Application.Version" I get the Excel version.
>
> Does anyone know how to test the office edition in VBA?



 
Reply With Quote
 
=?Utf-8?B?SHlwZXJuaWthbw==?=
Guest
Posts: n/a
 
      5th Jun 2007
In a post from Michel Pierron I read about the property
Application.ArbitraryXMLSupportAvailable

This will tell me what I need to know. Thank you Michel!


 
Reply With Quote
 
=?Utf-8?B?SHlwZXJuaWthbw==?=
Guest
Posts: n/a
 
      5th Jun 2007
At home I have Microsoft Office Excel 2003 (so version 11.0) and Microsoft
Office Basic Edition. Your code will not work for this situation.

Thanks anyway for your reply Bob.

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      5th Jun 2007
Why not? It tests for > 10, and guess what, 11 is > 10.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Hypernikao" <(E-Mail Removed)> wrote in message
news:ECC7CCB2-1DF0-4738-8F3E-(E-Mail Removed)...
> At home I have Microsoft Office Excel 2003 (so version 11.0) and Microsoft
> Office Basic Edition. Your code will not work for this situation.
>
> Thanks anyway for your reply Bob.
>



 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      5th Jun 2007
But that errors in 2002 and before.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Hypernikao" <(E-Mail Removed)> wrote in message
news:F8728478-EAB9-4064-98F1-(E-Mail Removed)...
> In a post from Michel Pierron I read about the property
> Application.ArbitraryXMLSupportAvailable
>
> This will tell me what I need to know. Thank you Michel!
>
>



 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Error when running NDIS Test for miniport driver. (2 card test) narsha@gmail.com Windows XP Logo 1 20th Sep 2008 08:07 AM
Microsoft Office 2000 running unders Windows Xp Hoem Edition Yeeeha Windows XP Help 2 3rd Oct 2005 02:41 PM
Installing Windows 2003 Server - Enterprise Edition - on partitioned PC running Windows XP Pro and Office Pro in separate partition =?Utf-8?B?Q2hyaXMgQmVubmV0dA==?= Windows XP Setup 1 2nd Feb 2004 09:45 PM
Connecting an Office running Win2K to a remote branch office running SBS =?Utf-8?B?S2V2aW4=?= Microsoft Windows 2000 0 19th Jan 2004 10:01 PM
Running a test with task scheduler while user is logged off Bogdan Zamfir Windows XP Basics 1 10th Nov 2003 09:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:12 AM.