LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 276
Default Modify to only work with nominated range instead of entire sheet

~~~~~~~~~~~~~~~~~~~~~~~
Dim c As Range
For Each c In Sheets("REPORT").UsedRange
If c.Locked = False Then c.Value = ""
Next c
End If
~~~~~~~~~~~~~~~~~~~~~~
The above code clears all cells in a sheet(REPORT) that are Not Locked.
However it seem to take a while to process.

How could i add a line to ONLY refer to a range of ( A1:AC960) instead of
the entire sheet ?


--
Corey ....
The Silliest Question is generally
the one i forgot to ask.


 
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
How do I change the direction of an entire excel work sheet ? rasam Excel Discussion (Misc queries) 1 October 21st 09 10:04 AM
Copy a Range of Data to another Work Sheet Theo Degr[_2_] Excel Programming 13 June 19th 07 12:59 PM
Countif time is between two nominated times hopeless in excel Excel Worksheet Functions 2 April 20th 06 11:33 PM
insert entire row for new data, external data range doesnt work orlya1 Excel Programming 3 April 3rd 06 08:39 PM
Nominated range not recognised in User Defined Funtion Matt Roberts Excel Programming 1 January 25th 06 12:18 PM


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