?
Solved

Excel Protected Cells and VBA Macros

Posted on 2003-03-28
3
Medium Priority
?
479 Views
Last Modified: 2010-05-01
Hey, i'm locking cells in order to keep users from modifying them, but i also need to give acceess to the Macro/VBA...

example: i want to put a value in a cell, but not allow user's to change the cells contents...?
thanx in advance :D
0
Comment
Question by:tampabay420
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
bruintje earned 100 total points
ID: 8226932
Hello tampabay420,

you could try to unprotect the cells while running the macro something along the lines of

'unprotect sheet first
'do the action
'protect sheet again

HAGD:O)Bruintje
0
 
LVL 1

Author Comment

by:tampabay420
ID: 8227171
hey, good thinking... i'll just unprotect the sheet for a sec while'st i do the calc- thanx for the idea :-)
0
 
LVL 44

Expert Comment

by:bruintje
ID: 8227829
:) cool and thanks for the grade
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month9 days, 8 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question