PC Review


Reply
Thread Tools Rate Thread

Compatibility error between Excel 2003 and 2003

 
 
Roy
Guest
Posts: n/a
 
      5th Jun 2008
I am trying to use the mask button with Excel 2003, but get issues running
under 2000 (I need 2000 to ignore the new commands in later versions)

With MenuItem
.Caption = "My Button"
Sheet1.Shapes(1).Copy
.PasteFace
.Mask = frmIcons.Image1.Picture
End With

The issue is the '.mask' doesn't compile under Excel 2000.

"#If VB6 Then" doesn't help since it's 'TRUE' for 2000 and 2003 as well. Is
there any other compile directive that I can use to distinguish between 2000
, 2002 and 2007 ?

How can I have Excel 2000 ignore this line during compilation?

 
Reply With Quote
 
 
 
 
ShaneDevenshire
Guest
Posts: n/a
 
      6th Jun 2008
Hi Roy,

Try
IF Application.Version >= 12 then

Else

End IF
--

Cheers,
Shane Devenshire
Microsoft Excel MVP
Join http://setiathome.berkeley.edu/ and download a free screensaver to help
search for life beyond earth.

"Roy" wrote:

> I am trying to use the mask button with Excel 2003, but get issues running
> under 2000 (I need 2000 to ignore the new commands in later versions)
>
> With MenuItem
> .Caption = "My Button"
> Sheet1.Shapes(1).Copy
> .PasteFace
> .Mask = frmIcons.Image1.Picture
> End With
>
> The issue is the '.mask' doesn't compile under Excel 2000.
>
> "#If VB6 Then" doesn't help since it's 'TRUE' for 2000 and 2003 as well. Is
> there any other compile directive that I can use to distinguish between 2000
> , 2002 and 2007 ?
>
> How can I have Excel 2000 ignore this line during compilation?
>

 
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
Excel 2007 to 2003 Compatibility Checker Error jcline2009 General Software 0 23rd Sep 2009 08:06 PM
ADO compatibility between Excel XP and 2003 acrobat74 Microsoft Excel Programming 2 20th Feb 2007 04:50 PM
Excel 2003 compatibility =?Utf-8?B?QWxhaW4=?= Microsoft Excel Misc 0 23rd Jun 2006 11:02 AM
Re: Excel 2003 compatibility with 2002 Frank Kabel Microsoft Excel Misc 1 5th Mar 2004 06:49 PM
Re: Excel 2003 compatibility with 2002 Ken Wright Microsoft Excel Misc 0 4th Mar 2004 06:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:00 PM.