Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,388
Default Can a Macro on exel be set with a password?

I would like a macro button to be password protected on a spread sheet that I
have, so people can look a things on the other sheets, but not on one of them.
Thanks

Dave
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Can a Macro on exel be set with a password?

if you need to protect worksheet try next:
activate sheet - Format-Sheet-Hide
Tools-Protection-Protect Worksheet

"Dave" wrote in message
...
I would like a macro button to be password protected on a spread sheet that
I
have, so people can look a things on the other sheets, but not on one of
them.
Thanks

Dave



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Can a Macro on exel be set with a password?

Dave

What do you mean by "macro button to be password protected"?

If you don't want anyone to see the sheet, hide the sheet then protect the
workbook for windows and structure.

If you don't want anyone to run a macro from your button, password protect the
code.

Sub foo()
Dim mypword As String
mypword = InputBox("enter a password")
If mypword < "drowssap" Then
MsgBox "wrong password"
Exit Sub
Else
MsgBox "what now, brown cow"
End If
End Sub


Gord Dibben MS Excel MVP

On Mon, 1 Oct 2007 19:00:16 +0200, "Sasa Stankovic" wrote:

if you need to protect worksheet try next:
activate sheet - Format-Sheet-Hide
Tools-Protection-Protect Worksheet

"Dave" wrote in message
...
I would like a macro button to be password protected on a spread sheet that
I
have, so people can look a things on the other sheets, but not on one of
them.
Thanks

Dave



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
How to unlock the password for the exel workbook nag Excel Discussion (Misc queries) 1 September 5th 07 09:39 PM
i forgot the password used for the exel sheet PH NUM New Users to Excel 2 September 15th 06 05:09 PM
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Worksheet Functions 5 October 27th 05 09:57 AM
Exel Worksheet Protected With A Password Best Buy Excel Worksheet Functions 1 September 20th 05 03:55 AM
Password protect folders in Exel Nick dalton Excel Discussion (Misc queries) 0 April 29th 05 01:30 PM


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