Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 92
Default Reduce a range to just be the part within another part?

Hi,
I have a protected sheet with range of cells the user can edit. On the
change event, for each cell in target I restore some formats with a
loop - if it insersect the range of cells allowed.

However, if the user insert a row or column, the code will check all
cells in the column. This is not acceptable, of cource.

However, I want the user to be able to insert rows and columns, so I
can't restrict that together with the sheet protection.

What is the best way to solve this? I don't want to use looping and for
each cell check if it intersect - and if so, Union it to a new range.
Is there any other way?

Happy to all answers,
Regards
tskogstrom

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 182
Default Reduce a range to just be the part within another part?

Hi ,

May be you can make it done by Unprotect before insert and protect them
again after insert like:

ActiveSheet.Unprotect
Rows(1).insert
ActiveSheet.Protect
--

Regards,

Halim


"tskogstrom" wrote:

Hi,
I have a protected sheet with range of cells the user can edit. On the
change event, for each cell in target I restore some formats with a
loop - if it insersect the range of cells allowed.

However, if the user insert a row or column, the code will check all
cells in the column. This is not acceptable, of cource.

However, I want the user to be able to insert rows and columns, so I
can't restrict that together with the sheet protection.

What is the best way to solve this? I don't want to use looping and for
each cell check if it intersect - and if so, Union it to a new range.
Is there any other way?

Happy to all answers,
Regards
tskogstrom


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
spreadsheet part and part without grid lines jan Excel Discussion (Misc queries) 2 April 26th 10 11:27 PM
Countif range contains part of a value antwaan Excel Worksheet Functions 10 May 4th 09 05:53 PM
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
Copying Part of a row down part of a column Not Excelling Excel Discussion (Misc queries) 3 January 6th 06 11:58 PM
How can I sperate the module into two part and connecte the two part and work well? ¬f©÷ Excel Programming 1 November 7th 04 03:05 AM


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