Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default password for macro

Hello,

it is possible to crate a password to run macro

mean

when i click command button to run a macro to ask password for run which
restricted other person to use macro
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 160
Default password for macro

Well, just use a simple InputBox, and don't forget to hide/protect your
VBA-code.

Be aware, however, that any determined intermediate user with no problem
can crack any Excel-code within 5 minutes...


CE



Den 09.02.2012 17:55, kalpesh skrev:
Hello,

it is possible to crate a password to run macro

mean

when i click command button to run a macro to ask password for run which
restricted other person to use macro

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,514
Default password for macro

Charlotte E. submitted this idea :
Be aware, however, that any determined intermediate user with no problem can
crack any Excel-code within 5 minutes...


Actually, it takes less than 1 minute to clear a file of all passwords,
including open password, wkb/wks protection, and VBA project.

--
Garry

Free usenet access at http://www.eternal-september.org
ClassicVB Users Regroup! comp.lang.basic.visual.misc


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 621
Default password for macro

Sub test()
pword = InputBox("Enter the password")
If pword < "drowssap" Then GoTo oops
MsgBox "you got it right" 'your code goes here
Exit Sub
oops:
MsgBox "try again"
End Sub


Make sure you add VBA protection so's users cannot see code.

In the VBE right-click on the workbook/project and
PropertiesProtectionLock for Viewing and password it with some other
password..........DO NOT forget it.

Save, close and re-open before locking takes place.


Gord


On Thu, 09 Feb 2012 10:55:23 -0600, kalpesh
wrote:

Hello,

it is possible to crate a password to run macro

mean

when i click command button to run a macro to ask password for run which
restricted other person to use macro

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
Password protection in macro ( Anybody can view my password in VB Sherees Excel Discussion (Misc queries) 2 January 24th 10 10:05 PM
PASSWORD REMOVAL I have the password to open the file and the password to modify the file now how to remove them LJ[_4_] Excel Programming 0 April 27th 06 03:18 AM
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
How to see macro code of a password protected macro without a password? Dmitry Kopnichev Excel Programming 5 October 27th 05 09:57 AM
macro password Ronbo Excel Programming 1 May 11th 04 05:24 PM


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