+ Reply to Thread
Results 1 to 6 of 6

using macros to insert and remove calculations a the workbook

  1. #1
    holy41
    Guest

    using macros to insert and remove calculations a the workbook

    I am using macros to address formulas in certain cells of a workbook. I am
    trying to find a way to clear those formulas (tried Workbook_BeforeClose) so
    that if my workbook is copied, and then macros are disabled, my work will not
    be displayed.
    I use a dongle with a code-checking macro for security on the workbook, but
    if you copy the book and disable macros, the book still functions and all the
    formulas are left in the cells.

  2. #2
    Jim Thomlinson
    Guest

    RE: using macros to insert and remove calculations a the workbook

    And the question is???
    --
    HTH...

    Jim Thomlinson


    "holy41" wrote:

    > I am using macros to address formulas in certain cells of a workbook. I am
    > trying to find a way to clear those formulas (tried Workbook_BeforeClose) so
    > that if my workbook is copied, and then macros are disabled, my work will not
    > be displayed.
    > I use a dongle with a code-checking macro for security on the workbook, but
    > if you copy the book and disable macros, the book still functions and all the
    > formulas are left in the cells.


  3. #3
    Jim Thomlinson
    Guest

    RE: using macros to insert and remove calculations a the workbook

    And the question is???
    --
    HTH...

    Jim Thomlinson


    "holy41" wrote:

    > I am using macros to address formulas in certain cells of a workbook. I am
    > trying to find a way to clear those formulas (tried Workbook_BeforeClose) so
    > that if my workbook is copied, and then macros are disabled, my work will not
    > be displayed.
    > I use a dongle with a code-checking macro for security on the workbook, but
    > if you copy the book and disable macros, the book still functions and all the
    > formulas are left in the cells.


  4. #4
    Jim Thomlinson
    Guest

    RE: using macros to insert and remove calculations a the workbook

    And the question is???
    --
    HTH...

    Jim Thomlinson


    "holy41" wrote:

    > I am using macros to address formulas in certain cells of a workbook. I am
    > trying to find a way to clear those formulas (tried Workbook_BeforeClose) so
    > that if my workbook is copied, and then macros are disabled, my work will not
    > be displayed.
    > I use a dongle with a code-checking macro for security on the workbook, but
    > if you copy the book and disable macros, the book still functions and all the
    > formulas are left in the cells.


  5. #5
    Jim Thomlinson
    Guest

    RE: using macros to insert and remove calculations a the workbook

    And the question is???
    --
    HTH...

    Jim Thomlinson


    "holy41" wrote:

    > I am using macros to address formulas in certain cells of a workbook. I am
    > trying to find a way to clear those formulas (tried Workbook_BeforeClose) so
    > that if my workbook is copied, and then macros are disabled, my work will not
    > be displayed.
    > I use a dongle with a code-checking macro for security on the workbook, but
    > if you copy the book and disable macros, the book still functions and all the
    > formulas are left in the cells.


  6. #6
    holy41
    Guest

    RE: using macros to insert and remove calculations a the workbook

    the question is - what format do i use to clear the formula from the cell?
    I have tried:
    sub Workbook_BeforeClose
    range("B9").formula.select
    selection.clearcontents
    activeworkbook.save
    end sub

    but this doesn't work. the formula is still left in the cell when i open the
    workbook again with macros disabled

    "Jim Thomlinson" wrote:

    > And the question is???
    > --
    > HTH...
    >
    > Jim Thomlinson
    >
    >
    > "holy41" wrote:
    >
    > > I am using macros to address formulas in certain cells of a workbook. I am
    > > trying to find a way to clear those formulas (tried Workbook_BeforeClose) so
    > > that if my workbook is copied, and then macros are disabled, my work will not
    > > be displayed.
    > > I use a dongle with a code-checking macro for security on the workbook, but
    > > if you copy the book and disable macros, the book still functions and all the
    > > formulas are left in the cells.


+ 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