Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Password security problem: view of the hiden worksheet in xlsm and xlsx file !?

Hello,

if you have an excel file of the type xlsm and if you protect the VBA code
with a password then you disable the user from seeing not only the code but
also from seeing the structure of worksheets, among them especially the
'very hiden' worksheets too.

An over inquisitive user can but save the VBA password protected xlsm file
as an xlsx file. In such a case the user besides he lose the VBA code he
get the access to all of the worksheets where he can then change the
properties and finally he get the access to the data of the before hiden
worksheets.

Is there any way to avoid to make user possible to view the data he shoud
not see?

Ivan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Password security problem: view of the hiden worksheet in xlsm and

There is absolutely no way to effectively protect data within an XL
spreadsheet. Any passwords can be broken (some are more difficult than others
but all can be broken). Very hidden sheets can easily be unhidden with very
simple code. In short if you are worried about security XL is not a good
platform to choose.

Run this code against any workbook to view all sheets

dim wks as worksheet
for each wks in activeworkbook.Worksheets
wks.visible = xlsheetvisible
next wks

(it misses xl4 macro sheets but that is easy to view also if you want)

If the workbook is protected then there is simple code that you can download
to hack the password.
--
HTH...

Jim Thomlinson


"Ivan" wrote:

Hello,

if you have an excel file of the type xlsm and if you protect the VBA code
with a password then you disable the user from seeing not only the code but
also from seeing the structure of worksheets, among them especially the
'very hiden' worksheets too.

An over inquisitive user can but save the VBA password protected xlsm file
as an xlsx file. In such a case the user besides he lose the VBA code he
get the access to all of the worksheets where he can then change the
properties and finally he get the access to the data of the before hiden
worksheets.

Is there any way to avoid to make user possible to view the data he shoud
not see?

Ivan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Password security problem: view of the hiden worksheet in xlsm and xlsx file !?

Searched by Google I saw (but I don't see the same in my Outlook Express ?)
that Jim Thomlinson have replied to my question and he has stressed that
Excel is completly unsafe and that it is always possible to break into the
code and into the structure of worksheets.

I agree with his thinking. However within bounds of practicability I wanted
to secure my workbook on a such way to make it impossible the entry into the
code and the view into the structure of worksheets for all ordinary users.

I think I found one way how to prevent user from seeing the data of the very
hiden worksheets in the case when the user save the excel xlsm file as the
xlsx one. I can use the event BeforClose of the worbook in such case. In the
code of BeforClose event it must be asked if the ActiveWorkbook.FileFormat
is equal 52 ( i.e. format is xlsm) and if this number is not 52 all sheets
with confidential data must be cleared:

If ActiveWorkbook.FileFormat < 52 then
Sheets("NameOfSheet").Select
Cells.Select
Selection.ClearContests
ActiveWorkbook.Save
End If

Ivan


"Ivan" wrote in message
...
Hello,

if you have an excel file of the type xlsm and if you protect the VBA code
with a password then you disable the user from seeing not only the code
but also from seeing the structure of worksheets, among them especially
the 'very hiden' worksheets too.

An over inquisitive user can but save the VBA password protected xlsm file
as an xlsx file. In such a case the user besides he lose the VBA code he
get the access to all of the worksheets where he can then change the
properties and finally he get the access to the data of the before hiden
worksheets.

Is there any way to avoid to make user possible to view the data he shoud
not see?

Ivan



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
problem saving xlsx file mohavv Excel Discussion (Misc queries) 1 February 16th 09 09:28 PM
How do I set default Excel Saveas file format to xlsx not xlsx Greg Conway Setting up and Configuration of Excel 1 September 17th 08 04:19 PM
Excel 2007 .xlsm file. Macro Security options not available. JP Excel Discussion (Misc queries) 1 July 17th 08 04:04 PM
Problem opening an.xls or xlsx file Dr. Dos New Users to Excel 2 December 7th 07 09:59 PM
how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab. Daniel Excel Worksheet Functions 0 June 23rd 05 11:56 PM


All times are GMT +1. The time now is 03:08 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"