#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Security...

Hi!

I was wondering how I could prevent the user from changing
certain fields after a macro is run on a spreadsheet.

For example after the macro is run:
The user can't:
insert/delete rows or columns
change certain cells/rows/columns values

Thank you,
LC

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Security...


Try this:
ActiveSheet.Protect (userinterfaceonly)

You have to lock certain cells ahead of time, which you can do manually.
Then, when activesheet.protect is run, users can't modify things. The
userinterfaceonly option allows subroutines to continue w/
modifications.

Cells.Locked = True
might be usefull too. I believe that it will allow you to do the
locking of certain cells from a subroutine.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Security...

And one reply from you post of a couple days ago:

http://groups.google.com/groups?thre...764D%40msn.com

LC wrote:

Hi!

I was wondering how I could prevent the user from changing
certain fields after a macro is run on a spreadsheet.

For example after the macro is run:
The user can't:
insert/delete rows or columns
change certain cells/rows/columns values

Thank you,
LC


--

Dave Peterson

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
Security dwake Excel Discussion (Misc queries) 1 December 16th 09 04:28 PM
Security Steven Sinclair Excel Discussion (Misc queries) 2 March 31st 09 07:47 PM
Security Liz J[_2_] Excel Discussion (Misc queries) 6 August 11th 08 09:52 PM
security kyoshirou Excel Discussion (Misc queries) 5 July 3rd 07 06:27 AM
Security The Rook[_2_] Excel Discussion (Misc queries) 4 May 9th 07 03:12 PM


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