Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Candyk
 
Posts: n/a
Default copy worksheet with formulas but not data

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.
  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default copy worksheet with formulas but not data

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.

--
Gary's Student


"Candyk" wrote:

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.

  #3   Report Post  
Candyk
 
Posts: n/a
Default copy worksheet with formulas but not data

Thank you!
Works great.
Sincerely, Candyk

"Gary''s Student" wrote:

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.

--
Gary's Student


"Candyk" wrote:

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.

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
Data From One Worksheet To Be Used In A Cell In A Different Worksheet ratt Excel Worksheet Functions 5 August 16th 05 03:13 AM
copy formulas to different cells in another worksheet jskamm Excel Discussion (Misc queries) 1 August 15th 05 06:32 PM
automatically copy data from one worksheet to another LC Excel Worksheet Functions 1 July 23rd 05 03:36 AM
PLEASE HELP......COPY DATA FROM ONE WORKSHEET TO ANOTHER reegan96 Excel Worksheet Functions 2 April 6th 05 07:17 PM
Weekly Transaction Processing Ralph Howarth Excel Worksheet Functions 4 January 19th 05 05:37 AM


All times are GMT +1. The time now is 01:54 AM.

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"