Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default 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
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
calculations or macros? KK Excel Discussion (Misc queries) 0 September 11th 09 04:36 PM
Can't Insert of remove worksheet in an existing workbook beginer1 Excel Discussion (Misc queries) 4 January 25th 06 03:06 AM
Remove Decimal from Calculations Jake Excel Discussion (Misc queries) 1 January 27th 05 01:03 AM
Disable or remove macros for a workbook to be sent in email... [email protected] Excel Programming 3 January 13th 05 03:31 PM
Remove Macros from Workbook ostq Excel Programming 3 September 26th 03 06:21 AM


All times are GMT +1. The time now is 05:54 PM.

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"