Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Prevent opening solution on other (older) versions (Excel 2000) et

Hi,

I have an Excel Solution that I am nearing completion. I've recently noticed
that if I open my workbook using Excel 2000, my protection is rendered
useless. I'm using a protection that is activated upon opening up the
workbook. It appears that Excel 2000 is not engaging this protection code for
the workbook and thus the user is ablet to delete worksheets, etc.

How do I prevent a user from opening up my solution using any version below
Excel 2003?

Any suggestions would be immensely helpful!

TIA,
Kent.
--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Prevent opening solution on other (older) versions (Excel 2000) et

Hi klysell

You can test the Application.Version in the workbook open event and close the file if it is not correct

If Val(Application.Version) < 11 Then
MsgBox "You must run Office 2003 or higher, you can't use this Add-in.", _
vbOKOnly, "My Add-in Name"
ThisWorkbook.Close False
Exit Sub
End If



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"klysell" wrote in message ...
Hi,

I have an Excel Solution that I am nearing completion. I've recently noticed
that if I open my workbook using Excel 2000, my protection is rendered
useless. I'm using a protection that is activated upon opening up the
workbook. It appears that Excel 2000 is not engaging this protection code for
the workbook and thus the user is ablet to delete worksheets, etc.

How do I prevent a user from opening up my solution using any version below
Excel 2003?

Any suggestions would be immensely helpful!

TIA,
Kent.
--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default Prevent opening solution on other (older) versions (Excel 2000

Thanks Ron!
--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557


"Ron de Bruin" wrote:

Hi klysell

You can test the Application.Version in the workbook open event and close the file if it is not correct

If Val(Application.Version) < 11 Then
MsgBox "You must run Office 2003 or higher, you can't use this Add-in.", _
vbOKOnly, "My Add-in Name"
ThisWorkbook.Close False
Exit Sub
End If



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"klysell" wrote in message ...
Hi,

I have an Excel Solution that I am nearing completion. I've recently noticed
that if I open my workbook using Excel 2000, my protection is rendered
useless. I'm using a protection that is activated upon opening up the
workbook. It appears that Excel 2000 is not engaging this protection code for
the workbook and thus the user is ablet to delete worksheets, etc.

How do I prevent a user from opening up my solution using any version below
Excel 2003?

Any suggestions would be immensely helpful!

TIA,
Kent.
--
Kent Lysell
Financial Consultant
Ottawa, Ontario
W: 613.948-9557


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
Older Versions of Excel excel help Excel Discussion (Misc queries) 1 September 22nd 08 12:26 AM
Older versions of Excel Launchnet Excel Discussion (Misc queries) 5 August 6th 07 03:50 PM
Opening .xlsm workbooks in older versions of excel Russ Excel Discussion (Misc queries) 2 July 5th 07 09:00 PM
Office 07 opening older versions in compatibility mode-min/maximiz Eric Dimbleby Excel Discussion (Misc queries) 0 June 11th 07 03:49 PM
Prevent recalculation when opening earlier versions Mats Nilsson Excel Programming 1 April 20th 05 04:39 PM


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

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

About Us

"It's about Microsoft Excel"