Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default How to protect a sheet with pasword

Hi, I want to make a macro, ehn the user press a button, the sheet is
automatically protected with the pasword:= "galileo"
TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default How to protect a sheet with pasword

Try something like

Sub ProtectSheet()
ActiveSheet.Protect password:="galileo"
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"filo666" wrote in message
...
Hi, I want to make a macro, ehn the user press a button, the
sheet is
automatically protected with the pasword:= "galileo"
TIA



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 265
Default How to protect a sheet with pasword

tanks chip, it works¡¡¡¡¡¡

"Chip Pearson" wrote:

Try something like

Sub ProtectSheet()
ActiveSheet.Protect password:="galileo"
End Sub


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com




"filo666" wrote in message
...
Hi, I want to make a macro, ehn the user press a button, the
sheet is
automatically protected with the pasword:= "galileo"
TIA




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
Hellllllp Can,t remember pasword chesjak Excel Worksheet Functions 3 April 30th 08 05:07 PM
Excell VBA pasword Sparky13 Excel Discussion (Misc queries) 5 June 22nd 07 06:40 PM
Protect Workbook Vs Protect Sheet Poor_pakistani New Users to Excel 4 May 25th 06 02:06 PM
Login to a web page & automatically fill in pasword Dave F.[_4_] Excel Programming 2 June 27th 05 12:33 PM
Lock and protect cells without protect the sheet Christian[_7_] Excel Programming 6 December 28th 04 04:50 PM


All times are GMT +1. The time now is 10:53 PM.

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"