Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default Disallow changes once expiry reached

Like a simple event, I need a set of codes that will automatically disallow
changes in Sheet1 from row1 to 50, once the date turns 1/1/2007 and onwards.

When I say €śdisallow changes€ť it must be very gross. Perhaps just prevent
users from being able to select any cell within the range (but yet cell must
be visible to user) or perhaps make it that whatever entry made into the
range will be rejected.

Sheet Protection wont work because I suspect some users have tools to break
it. But if I store your codes in VBA & protect from view, this will be a lot
better.

Nevermind if users disable Macro on open. I have managed to take care of
this already.

Any help or method would be much appreciated.

--
Edmund
(Using Excel XP)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Disallow changes once expiry reached

Edmund,
Would it not be easier to have code in the _BeforeSave event ?
<Pseudo Code
If (WB.IsDirty=True) And (Date CutOffdate) Then
msgbox "Too late for changes"
Else
.save
End

You can set the IsDirty in the WS change events, if the range is in rows
1-50.
Also, you can set the .ScrollArea and EnableSelection properties, but these
only function if the sheet is protected.

Otherwise maintain a copy of the required range of the first 50 rows and if
any are chnage, reset them with a msgbox to the user.

NickHK

"Edmund" wrote in message
...
Like a simple event, I need a set of codes that will automatically

disallow
changes in Sheet1 from row1 to 50, once the date turns 1/1/2007 and

onwards.

When I say "disallow changes" it must be very gross. Perhaps just prevent
users from being able to select any cell within the range (but yet cell

must
be visible to user) or perhaps make it that whatever entry made into the
range will be rejected.

Sheet Protection won't work because I suspect some users have tools to

break
it. But if I store your codes in VBA & protect from view, this will be a

lot
better.

Nevermind if users disable Macro on open. I have managed to take care of
this already.

Any help or method would be much appreciated.

--
Edmund
(Using Excel XP)



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
Disallow duplicates in different worksheets ClaireView Excel Discussion (Misc queries) 5 February 4th 08 08:05 PM
Disallow cell entries hopeace Excel Discussion (Misc queries) 3 October 14th 05 12:19 AM
Disallow Paste Steph[_3_] Excel Programming 3 June 22nd 05 05:37 PM
Search and Disallow macro in Excel ChristalClarity Excel Programming 1 June 2nd 05 04:07 AM
Disallow sorting of data. Tom Ogilvy Excel Programming 1 January 4th 05 04:11 PM


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