Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Locking non-Validation cells in ranges

Having trouble getting the following to do.
Any advice would be good.
Sandy

Dim rngPossibleValidation As Range
Dim rngValidation As Range

Set rngPossibleValidation = Range
("O4,05,C14:K14,M14:U14,C15:K15,M15:U15,C21:K21,M2 1:U21,
C23:K23,M23:U23,C27:K27,M27:U27,C33:K35,M33:U35,C3 9:K41,
M39:U41,C53:K53,M53:U53,C56:K56,M56:U56,C59:K59,M5 9:U59")

rngPossibleValidation.Cells.Locked = True

Set rngValidation = Cells.SpecialCells(xlCellTypeAllValidation)
rngValidation.Cells.Locked = False


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 270
Default Locking non-Validation cells in ranges

Oops - just realised i have posted this in the wrong group - sorry. I will
repost in the correct area with a little more info
Sandy

"Sandy" wrote in message
...
Having trouble getting the following to do.
Any advice would be good.
Sandy

Dim rngPossibleValidation As Range
Dim rngValidation As Range

Set rngPossibleValidation = Range
("O4,05,C14:K14,M14:U14,C15:K15,M15:U15,C21:K21,M2 1:U21,
C23:K23,M23:U23,C27:K27,M27:U27,C33:K35,M33:U35,C3 9:K41,
M39:U41,C53:K53,M53:U53,C56:K56,M56:U56,C59:K59,M5 9:U59")

rngPossibleValidation.Cells.Locked = True

Set rngValidation = Cells.SpecialCells(xlCellTypeAllValidation)
rngValidation.Cells.Locked = False



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
Data Validation and Dynamic Ranges GSB Excel Discussion (Misc queries) 2 July 17th 07 06:24 AM
How do I use Named Ranges as Data Validation Lists? Chris Mitchell Excel Worksheet Functions 2 June 23rd 07 12:15 PM
locking formula in cells in without locking whole sheet SuziQ Excel Discussion (Misc queries) 1 July 21st 06 03:58 PM
Data validation using multiple ranges madbloke Excel Discussion (Misc queries) 4 June 9th 06 02:43 PM
Validation protection with named ranges Ben H Excel Worksheet Functions 1 March 17th 06 03:49 AM


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