Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default create a new worksheet with the same formula

I am trying to rename a worksheet to 2007. I want to keep the formulas, but
clear the data so I can put in new information.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default create a new worksheet with the same formula

Copy the entire worksheet (or workbook) using
Edit, Move or Copy, besure to sheck the Copy box,
then on the new worksheet which you can rename,
you can delete all of the Constant information in a selection.

Select the entire sheet if you like, but it is unlikely that
you'd want to remove row 1 and column 1 descriptive
constants. You can select nontinguous areas if you like
such as most of different columns. One way to protect
some constant information is to change them to formulas
For example: ="Description"

Then invoke a macro such as the following.

Sub Clear_Constants() 'D.McRitchie 2005-11-19 rightclick.htm - insrtrow.htm
'-- provide for in rightclick cell, row, and column commandbars
Dim rng As Range 'prevent expansion of a single cell selection
Set rng = Intersect(Selection, Selection.SpecialCells(xlConstants))
If rng Is Nothing Then
MsgBox "No constants in selection area(s) -- no removal"
Else
rng.ClearContents
End If
End Sub

Directions to install and use the above macro in
http://www.mvps.org/dmcritchie/excel....htm#havemacro
The macro described above is part of some macros, that I
invoke from the context menu.
http://www.mvps.org/dmcritchie/excel/rightclick.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"Fuddy321" wrote in message ...
I am trying to rename a worksheet to 2007. I want to keep the formulas, but
clear the data so I can put in new information.



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
Index and Match Formula Barbara Schneier Excel Worksheet Functions 4 January 7th 07 06:07 PM
need formula to reference a cell in previous worksheet Jim Excel Worksheet Functions 3 January 5th 07 04:05 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM


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

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"