+ Reply to Thread
Results 1 to 4 of 4

VBA to link cells from One sheet to another

  1. #1
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    VBA to link cells from One sheet to another

    In attachment, I have 6 Sheets. In sheet "Collate", I have linked few cells from other 5 sheets.

    For some reason as per my work flow, I need to delete the 5 sheets and create same 5 sheets again.

    But as soon as I delete these 5 sheets, the link in Sheet "Collate" Become liks this =#REF!D3. It does not shows any value.

    Eben after creating the same sheets with same names the links does get updated.

    Can any one help on this?

    Is there any code which can link the same cells again to show the value of linked cell.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA to link cells from One sheet to another

    What cell or cells was that cell linked to?
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Contributor
    Join Date
    11-17-2015
    Location
    India
    MS-Off Ver
    2013
    Posts
    365

    Re: VBA to link cells from One sheet to another

    Cell values.

    If you look at the atatched file, for e.g. in Sheet "Collate" G3the value is "11" which is linked with value in Sheet "Information1"

    After the deletion of sheet "Information1", G3 of sheet "Collate" becomes #REF!.

    After the recrewation of Sheet "Information1", G3 of sheet "Collate" should restore the same value "11". like wise in all linked cells in sheet " Collate"

  4. #4
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: VBA to link cells from One sheet to another

    Ahhh

    A simple Macro to reenter all your formulas:-

    I have added a button to your Collate Sheet.

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Replies: 0
    Last Post: 02-18-2016, 07:26 AM
  2. Link cells of automatically created sheet to already existing sheet
    By franklinu in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-08-2015, 10:24 PM
  3. Formula to link cell on one sheet to changing cells on another sheet
    By Patish in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2014, 12:55 PM
  4. Replies: 0
    Last Post: 01-28-2014, 02:45 PM
  5. Replies: 28
    Last Post: 02-27-2006, 06:35 PM
  6. Replies: 1
    Last Post: 05-24-2005, 06:31 AM
  7. Replies: 1
    Last Post: 05-24-2005, 06:06 AM

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