+ Reply to Thread
Results 1 to 3 of 3

Another way to remove formula

  1. #1
    Registered User
    Join Date
    08-13-2004
    Posts
    66

    Another way to remove formula

    Is there another way to remove formula from a worksheet keeping the values using macros, I've tried using:

    Sheets("NATIONALS").Select
    Range("A804:G827").Select
    Selection.Copy
    Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
    False, Transpose:=False


    It works every other time I use it, but in this case I get a Dr Watson errors. Is there another way of doing this.

    Excel 97.

  2. #2
    Tom Ogilvy
    Guest

    Re: Another way to remove formula

    Sub Makeconstants()
    with Sheets("NATIONALS").Range("A804:G827")
    .Formula = .Value
    end with
    End Sub

    If you have merged cells in the range, you may need another approach.

    --
    Regards,
    Tom Ogilvy


    "DKerr" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Is there another way to remove formula from a worksheet keeping the
    > values using macros, I've tried using:
    >
    > Sheets("NATIONALS").Select
    > Range("A804:G827").Select
    > Selection.Copy
    > Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone,
    > SkipBlanks:= _
    > False, Transpose:=False
    >
    >
    > It works every other time I use it, but in this case I get a Dr Watson
    > errors. Is there another way of doing this.
    >
    > Excel 97.
    >
    >
    > --
    > DKerr
    > ------------------------------------------------------------------------
    > DKerr's Profile:

    http://www.excelforum.com/member.php...o&userid=13087
    > View this thread: http://www.excelforum.com/showthread...hreadid=477472
    >




  3. #3
    Registered User
    Join Date
    08-13-2004
    Posts
    66

    thanks

    That works perfectly, thanks.

+ 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