Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default help needed sorry I hit enter on the last one

I have a spreadsheet or workbook ( which ever you prefer) that I use daily.
It is quite extensive and has manty cells and rows of cells that I enter data
in. ther is 4 times that may cells that contain formulas. I fill this out
each day for the week and then print and submit it. After I print it I have
to go to each cell and /or row of cells and delete the data. My question is,
is there a way to format a cell with a command to delete all data in
unprotected cells?
--
Thanks
Bob
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default help needed sorry I hit enter on the last one

You could use a macro to delete all data in unprotected cells...

Sub Clearem()
Dim c As Range
For Each c In ActiveSheet.UsedRange
If c.Locked = False Then
c.ClearContents
End If
Next
End Sub

Paste the code in a VBA module in your workbook. Run it from your worksheet
by selecting Tools Macro Macros Clearem Run.

If you are new to macros, this link to Jon Peltier's site may be helpful:
http://peltiertech.com/WordPress/200...e-elses-macro/

Hope this helps,

Hutch

"Postal Bob" wrote:

I have a spreadsheet or workbook ( which ever you prefer) that I use daily.
It is quite extensive and has manty cells and rows of cells that I enter data
in. ther is 4 times that may cells that contain formulas. I fill this out
each day for the week and then print and submit it. After I print it I have
to go to each cell and /or row of cells and delete the data. My question is,
is there a way to format a cell with a command to delete all data in
unprotected cells?
--
Thanks
Bob

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default help needed sorry I hit enter on the last one

You could try F5SpecialConstants to select all but FormulasOK

EditClear Contents

Note: you state workbook so you would have to do this for each worksheet in
that workbook.


Gord Dibben MS Excel MVP


On Tue, 14 Oct 2008 12:29:00 -0700, Postal Bob
wrote:

I have a spreadsheet or workbook ( which ever you prefer) that I use daily.
It is quite extensive and has manty cells and rows of cells that I enter data
in. ther is 4 times that may cells that contain formulas. I fill this out
each day for the week and then print and submit it. After I print it I have
to go to each cell and /or row of cells and delete the data. My question is,
is there a way to format a cell with a command to delete all data in
unprotected cells?


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
Macro to select cells in column enter data then press enter NP New Users to Excel 1 February 20th 08 04:21 PM
Enter multiple numbers in a cell so total shows when enter keypres newbie Excel Worksheet Functions 2 August 19th 07 12:23 PM
Enter info in one sheet, auto enter in another based on one field The BusyHighLighter[_2_] New Users to Excel 1 August 1st 07 10:54 PM
What does hitting Ctrl + Shift + Enter to enter a formula do??? Help a n00b out. qwopzxnm Excel Worksheet Functions 2 October 20th 05 09:06 PM
enter data on 1 sheet and make it enter on next avail row on 2nd s Nadia Excel Discussion (Misc queries) 27 September 9th 05 03:39 PM


All times are GMT +1. The time now is 04:04 PM.

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"