Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 52
Default Conditional Compilation using Application.Version


Chip Pearson posted this:

You can use Conditional Compilation combined with CallByName to
do what you want. For example,

#If VBA6 Then
If CInt(Application.Version) 9 Then
' Excel 2002 or 2003
CallByName Application.CommandBars, "DisableCustomize", VbLet, True
Else
' Excel 2000
End If
#Else
' Excel 97
#End If

Philip wrote:

Hi,

I need to do something like this:

#If Application.Version = 11 Then
Application.CommandBars.disablecustomize = True
#End If

the reason is, the desktop pc's are being migrated from Office 2000 to
Office 2003 and I want this code to run if the version is greater then 11
(Office 2002 ?)

The 'disablecustomize' member is not available in Office 2000...

So how can I do this...?

thanks

Philip


--

Dave Peterson

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Office application version does not match. Joy Excel Discussion (Misc queries) 0 February 16th 09 01:22 PM
Late Bind to Specific version of Application jason Excel Programming 5 June 26th 04 03:54 PM
Help in using Application.Version Tom Ogilvy Excel Programming 0 April 1st 04 04:21 AM
Office automation application which will work with any version of office C#.NET Silly Programmer Excel Programming 1 February 21st 04 10:54 AM
Conditional compilation WK Excel Programming 1 August 18th 03 01:05 AM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"