+ Reply to Thread
Results 1 to 5 of 5

linking cells in vba instead of pulling the value

  1. #1
    Registered User
    Join Date
    04-24-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    13

    linking cells in vba instead of pulling the value

    I have a VBA code that pulls a value from a single cell on a separate tab. Instead of just pulling the value (ex. 3.44589348) is there a way to have it pull the value as a link to the other
    tab? It still would display the number but if you click on the cell it would display =Sheet2!A1 (for example).

    Thanks!!

  2. #2
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: linking cells in vba instead of pulling the value

    Yes you could use the following if for example you want cell A1 in sheet1 to have the same value as cell A1 in sheet2
    Please Login or Register  to view this content.
    This will give you the same value but not the formula. If you want the formula use
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-24-2014
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: linking cells in vba instead of pulling the value

    Thank you for your response! I don't need the same formula I just need my value on Sheet1 to display =Sheet2!A1 instead of just the number. The numbers on Sheet2 are hard coded so they have no formula. I am wondering if there is another ending like ".Value" that will do that. The goal is then if the numbers change on my other sheets, I wont have to re-run my macro again since they will be linked from the start. Does that help?

  4. #4
    Registered User
    Join Date
    06-18-2014
    Location
    Dallas, Texas
    MS-Off Ver
    Home and Business 2010
    Posts
    84

    Re: linking cells in vba instead of pulling the value

    Ok I'm not sure how to do that though you could achieve the same result by adding a workbook change function
    Please Login or Register  to view this content.
    Here when ever there is a change in sheet2 the value of A1 in sheet1 will equal the value of A1 in sheet2

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: linking cells in vba instead of pulling the value

    Try:

    Please Login or Register  to view this content.
    Last edited by JOHN H. DAVIS; 07-10-2014 at 02:52 PM.

+ 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. [SOLVED] Linking cells globally to allow users the ability to change cells on separate sheet/cells.
    By V1gilante in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2014, 10:47 PM
  2. Pulling a Specific Cell when Pulling a Tabel from Web Based Data
    By Zallen89 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2013, 05:39 PM
  3. Formula for pulling only cells with certain value
    By ghladik in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-10-2012, 12:21 PM
  4. Pulling information from different cells
    By Xenmas in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-10-2009, 09:12 PM
  5. [SOLVED] Pulling Row and Column labels from other cells.
    By MTUSNOW in forum Excel General
    Replies: 0
    Last Post: 09-07-2005, 07:05 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