Disable buttons in Macro
Closed
                                    
                        Ron                    
                                    -
                            Feb  5, 2009 at 09:37 AM
                        
rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jun 21, 2010 at 03:02 PM
        rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 - Jun 21, 2010 at 03:02 PM
        Related:         
- Disable buttons in Macro
 - Asus volume buttons not working - Guide
 - How to disable javascript in tor - Guide
 - How to disable images on chrome android - Guide
 - How to disable deep freeze without password - Guide
 - How to disable cpu cores in windows 11 - Guide
 
2 responses
                        
                    While in the Visual Basic Editor, Click Tools -- VBA Project Properties.
In the General tab type a name for your project.
Now click the Protection tab.
Click the Lock project for viewing box.
Next, type a password in the box.
Type it again to confirm.
Click OK.
Save your excel file and close it.
Reopen your excel file and go to Tools -- Macros.
It will be greyed out as you desired.
Now go to the Visual Basic Editor and double click your project.
It will prompt you for a password.
            In the General tab type a name for your project.
Now click the Protection tab.
Click the Lock project for viewing box.
Next, type a password in the box.
Type it again to confirm.
Click OK.
Save your excel file and close it.
Reopen your excel file and go to Tools -- Macros.
It will be greyed out as you desired.
Now go to the Visual Basic Editor and double click your project.
It will prompt you for a password.
                
        
                    rizvisa1
    
        
                    Posts
            
                
            4478
                
                            Registration date
            Thursday January 28, 2010
                            Status
            Contributor
                            Last seen
            May  5, 2022
            
            
                    766
    
    
                    
Jun 21, 2010 at 03:02 PM
    Jun 21, 2010 at 03:02 PM
                        
                    I am not sure if thats possible. If you dont want the user to modify the code, then protect you VBA project with password. In this way macro can still run and no one can modify the code
                
                
            
        
    
    
    
    
Jun 21, 2010 at 08:48 AM
Any one can help on this please..