+ Reply to Thread
Results 1 to 2 of 2

prevent a macro from removing any formulas that are on the worksheet?

  1. #1
    Registered User
    Join Date
    01-09-2012
    Location
    here
    MS-Off Ver
    Excel 2003
    Posts
    68

    prevent a macro from removing any formulas that are on the worksheet?

    is there anyway i can prevent my macro from removing any formulas that i have on my worksheet? For example is i add the total sum to one colomn. I dont want to lose it once i use the marco.


    This is the code im using..



    Please Login or Register  to view this content.

  2. #2
    Forum Contributor
    Join Date
    06-16-2011
    Location
    London
    MS-Off Ver
    Excel XP
    Posts
    276

    Re: prevent a macro from removing any formulas that are on the worksheet?

    If you specify a cell reference in your macro and tell it that cell(ref) = "whatever" then no matter what you do, the contents of the cell will be overwritten.

    The only way to ensure cells are not overwritten is either, a) make sure you do not reference any cells that aren't supposed to be overwritten in your macro or b) have a qualifier such as:

    Please Login or Register  to view this content.

+ 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