+ Reply to Thread
Results 1 to 2 of 2

Formulas lose reference after macro is executed

  1. #1
    Registered User
    Join Date
    01-21-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    19

    Formulas lose reference after macro is executed

    MS Model v1.xlsm

    I'm stuck on something. My formulas in columns C-H lose the reference to the 'Close Price' sheet after the macro is ran on the 'Parameters' sheet. The macro deletes all of the sheets except the two core colored ones and then recreates them with the updated stock data.

    Does anyone know how to fix this by either altering the macro or the formula in the cells?

    Thanks very much.

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Formulas lose reference after macro is executed

    If you're deleting the sheet then you will always lose formula references to that sheet.
    You will either need to use INDIRECT in the formula wherever you refer to a sheet that will be deleted, or re-enter the formula with the macro after the sheets are recreated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro executed within one tab
    By toplisek in forum Excel General
    Replies: 2
    Last Post: 07-03-2015, 04:49 AM
  2. Dynamic charts lose reference in chart series =[0]!
    By Mikerton in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-31-2013, 07:31 AM
  3. Need macro help restricting when it is executed
    By graduate106 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-08-2013, 11:00 AM
  4. Cells lose formulas when data is deleted
    By Shawni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2013, 09:27 AM
  5. Lose Original Reference when Moving Cell
    By englishman11 in forum Excel General
    Replies: 2
    Last Post: 09-21-2012, 05:58 AM
  6. Excel 2007 : Formulas lose cell references
    By Arazmus in forum Excel General
    Replies: 8
    Last Post: 07-07-2009, 11:33 PM
  7. Replies: 7
    Last Post: 04-19-2006, 03:10 PM

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