+ Reply to Thread
Results 1 to 3 of 3

copy worksheet with formulas but not data

  1. #1
    Candyk
    Guest

    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. #2
    Gary''s Student
    Guest

    RE: 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. #3
    Candyk
    Guest

    RE: 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 to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1