Consulting

Results 1 to 2 of 2

Thread: Update Formulas to Reference New Cells Instead of Deleted Ones

  1. #1
    VBAX Regular
    Joined
    Oct 2010
    Posts
    14
    Location

    Update Formulas to Reference New Cells Instead of Deleted Ones

    Hi,

    I'm having problems with referencing. For example, cell A1 in "Sheet1" contains the formula ='Sheet2'!B1 of current workbook. When I delete the column B in Sheet2, A1 will give me a reference error ='Sheet2'!#REF!.

    How can I get the formula to update and accept the new values at B1 rather than the old?

  2. #2
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,888
    try:
    =INDIRECT("Sheet2!B1")
    p45cal
    Everyone: If I've helped and you can't be bothered to acknowledge it, I can't be bothered to look at further posts from you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •