Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
doodah
 
Posts: n/a
Default Clear a worksheet without clearing formulas?

Have a worksheet been using; don't have a blank master. Now i need a blank
worksheet with the formulas still intact.
  #2   Report Post  
Posted to microsoft.public.excel.misc
Paul B
 
Posts: n/a
Default Clear a worksheet without clearing formulas?

doodah, try this, Edit, go to, special, constants, OK, delete

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"doodah" wrote in message
...
Have a worksheet been using; don't have a blank master. Now i need a blank
worksheet with the formulas still intact.



  #3   Report Post  
Posted to microsoft.public.excel.misc
kghexce
 
Posts: n/a
Default Clear a worksheet without clearing formulas?


Have a similar issue...

Summary page with titles, fixed data, and variable data entered as
needed PLUS 750 linked pages each of which has titles, fixed data and
variable data entered. By following Pual B's suggestion and
highlighting to the right and below titles and fixed data the Summary
page is easily blanked. (Thanks Paul B).

Would also like to clear the entries in Cells B2:C21 on each of the 750
pages without affecting the column titles and other constants on each
page.

Plan had been clear one page manually, copy cells A1:C21 then CRTRL
PAGE DOWN to next Sheet and PASTE via macro 749 times in a row. (This
will only take about 30 minutes once a year so it isn't a big deal and
is how the pages were created in the first place).

However if there is a slicker solution that would be great.

Any ideas?


--
kghexce
------------------------------------------------------------------------
kghexce's Profile: http://www.excelforum.com/member.php...o&userid=29804
View this thread: http://www.excelforum.com/showthread...hreadid=497240

  #4   Report Post  
Posted to microsoft.public.excel.misc
Paul B
 
Posts: n/a
Default Clear a worksheet without clearing formulas?

kghexce, here is one way,

Sub Clear_Range()
'Will clear whats in B2:C21 in all sheets
'except sheet named Summary
Dim ws As Worksheet
For Each ws In Worksheets
If ws.Name < "Summary" Then
With ws
.Range("B2:C21").ClearContents
End With
End If
Next ws
End Sub


--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"kghexce" wrote in
message ...

Have a similar issue...

Summary page with titles, fixed data, and variable data entered as
needed PLUS 750 linked pages each of which has titles, fixed data and
variable data entered. By following Pual B's suggestion and
highlighting to the right and below titles and fixed data the Summary
page is easily blanked. (Thanks Paul B).

Would also like to clear the entries in Cells B2:C21 on each of the 750
pages without affecting the column titles and other constants on each
page.

Plan had been clear one page manually, copy cells A1:C21 then CRTRL
PAGE DOWN to next Sheet and PASTE via macro 749 times in a row. (This
will only take about 30 minutes once a year so it isn't a big deal and
is how the pages were created in the first place).

However if there is a slicker solution that would be great.

Any ideas?


--
kghexce
------------------------------------------------------------------------
kghexce's Profile:

http://www.excelforum.com/member.php...o&userid=29804
View this thread: http://www.excelforum.com/showthread...hreadid=497240



  #5   Report Post  
Posted to microsoft.public.excel.misc
kghexce
 
Posts: n/a
Default Clear a worksheet without clearing formulas?


Know nothing about VBA and thus just added the code to an existing
module, resaved it and ran. Must have done something wrong as it just
worked and worked and worked. Needed to kill via Task Manager.

Did the 'clear one sheet, copy and paste' via macro 750 times.
Surprisingly, it took less than 10 minutes to empty all the sheets.
(Saved a blank version as a template for 2007).

My New Year's resolution is to read the recently acquired 'VBA for
Dummies'.

"I'll Be Back!" once the book is read and try again.

Thanks so much for the tip.


--
kghexce
------------------------------------------------------------------------
kghexce's Profile: http://www.excelforum.com/member.php...o&userid=29804
View this thread: http://www.excelforum.com/showthread...hreadid=497240



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Clear a worksheet without clearing formulas?

Paul B, That worked for me until i got to delete. Here's what I did instead:
Edit, go to, special, constants, ok. THEN right click, clear contents.

I found that if you hit delete at the end it clears the formulas but if you
click on clear contents it leaves the formulas intact. Thank you for getting
me that far, though.

"Paul B" wrote:

doodah, try this, Edit, go to, special, constants, OK, delete

--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2002 & 2003

"doodah" wrote in message
...
Have a worksheet been using; don't have a blank master. Now i need a blank
worksheet with the formulas still intact.




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
Linking Formulas, Worksheet to Worksheet - Excel 2003 windsong Excel Discussion (Misc queries) 2 November 14th 05 01:37 AM
Formulas and worksheet linking amandaa Excel Worksheet Functions 1 September 6th 05 12:36 PM
How do you print a worksheet so the formulas appear? twoodard New Users to Excel 1 June 7th 05 07:21 PM
How do I clear a column of data without clearing the formulas? EllenSwarts Excel Discussion (Misc queries) 2 March 11th 05 02:09 PM
Replicating Worksheet References in Formulas Cloudburst99 Excel Worksheet Functions 2 January 18th 05 09:27 PM


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