Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Signaling the presence of a password

Hey there,

Is there a way to find out, from inside a workbook,
if that workbook is password-protected or not.

Why.....?
I have created a workbook with some specific functions in
the buttonbar that should only be available to users that
have their workbook protected by a password, if not than
these buttons will not be enabled. I do not have to know
the password, just the knowledge that there is a password.

Thanks beforehand
Geert Nauta
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Signaling the presence of a password

Perhaps

If ActiveWorkbook.HasPassword = True Then

I have never used it, but it is in the xl2002 object model. Can't say for
earlier versions.

--
Regards,
Tom Ogilvy


"Geert Nauta" wrote in message
...
Hey there,

Is there a way to find out, from inside a workbook,
if that workbook is password-protected or not.

Why.....?
I have created a workbook with some specific functions in
the buttonbar that should only be available to users that
have their workbook protected by a password, if not than
these buttons will not be enabled. I do not have to know
the password, just the knowledge that there is a password.

Thanks beforehand
Geert Nauta



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Signaling the presence of a password

Hey Tom,
The 'ActiveWorkbook.HasPassword'property works.
Also in my Office2000

many thanks
Geert Nauta

-----Original Message-----
Perhaps

If ActiveWorkbook.HasPassword = True Then

I have never used it, but it is in the xl2002 object

model. Can't say for
earlier versions.

--
Regards,
Tom Ogilvy


"Geert Nauta" wrote in message
...
Hey there,

Is there a way to find out, from inside a workbook,
if that workbook is password-protected or not.

Why.....?
I have created a workbook with some specific functions

in
the buttonbar that should only be available to users

that
have their workbook protected by a password, if not than
these buttons will not be enabled. I do not have to know
the password, just the knowledge that there is a

password.

Thanks beforehand
Geert Nauta



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Signaling the presence of a password

If you have protected the workbook windows then there is a
read-only ProtectWindows property that you can check.
Geof.
-----Original Message-----
Hey there,

Is there a way to find out, from inside a workbook,
if that workbook is password-protected or not.

Why.....?
I have created a workbook with some specific functions in
the buttonbar that should only be available to users that
have their workbook protected by a password, if not than
these buttons will not be enabled. I do not have to know
the password, just the knowledge that there is a password.

Thanks beforehand
Geert Nauta
.

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
Replace numbers to 1s and 0s for presence/absence Charles Excel Discussion (Misc queries) 4 April 21st 23 09:03 AM
count the presence of a date as 1 WLWTNG Excel Worksheet Functions 2 January 10th 10 09:29 PM
Detect Presence Formula Ken Excel Worksheet Functions 6 September 12th 06 06:43 PM
please help me mark their presence. hirendra7158 Excel Worksheet Functions 3 March 13th 06 10:46 PM
count their presence hirendra7158 Excel Worksheet Functions 1 March 13th 06 08:41 PM


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