copy worksheet with formulas but not data

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a worksheet with formulas that I need to copy for each month.
The worksheet is filled in with data, but I only want the formulas, lables,
headings, formats etc not the actual data.
How can I do this?
Any help is appreciated greatly.
 
How about copying the worksheet exactly and then clearing all the data?
After copying, enter and run this small macro:

Sub clearit()
Dim r As Range
For Each r In Selection
If IsNumeric(r.Value) Then
If r.HasFormula Then
Else
r.Clear
End If
End If
Next
End Sub

It will clear numbers, but l;eave formulae and text alone.
 
Thank you!
Works great.
Sincerely, Candyk

Gary''s Student said:
How about copying the worksheet exactly and then clearing all the data?
After copying, enter and run this small macro:

Sub clearit()
Dim r As Range
For Each r In Selection
If IsNumeric(r.Value) Then
If r.HasFormula Then
Else
r.Clear
End If
End If
Next
End Sub

It will clear numbers, but l;eave formulae and text alone.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top