+ Reply to Thread
Results 1 to 3 of 3

Errors in my formulas in sheet 1 when deleting data in sheet 2

  1. #1
    Registered User
    Join Date
    09-14-2011
    Location
    Opdorp, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    Errors in my formulas in sheet 1 when deleting data in sheet 2

    In sheet1 I am using formulas which get data from sheet 2.
    The data in sheet 2 is copied from another file (which contains much more data dan I need in my sheet 2).
    To copy the data to sheet 2 I am using a VBA script in which I first delete all data in sheet 2 before pasting the data from that other file (otherwise the data just gets appended to the already existing data in sheet 2). The problem I now have is that deleting this data in sheet 2 affects my formulas in sheet 1. I get #REF! where my ranges used to be.
    Any idea how I can avoid this ?

    Thx,
    Sucha

  2. #2
    Forum Contributor
    Join Date
    02-12-2012
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    275

    Re: Errors in my formulas in sheet 1 when deleting data in sheet 2

    You probarbly use the code .clear to clear

    try using .ClearContents

  3. #3
    Registered User
    Join Date
    09-14-2011
    Location
    Opdorp, Belgium
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Errors in my formulas in sheet 1 when deleting data in sheet 2

    It works !

    Thanks Evertjvr

+ 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