+ Reply to Thread
Results 1 to 4 of 4

Cannot link two cells between worksheets

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    edmonton alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    Cannot link two cells between worksheets

    Hey, I'm new here and to vba so any help is greatly appreciated!

    I want to be able to "link" two cells together so if you enter a value into one cell the other cell will match it, and vice versa. I can do this with two cells in the same worksheet, but I cannot figure it out if they are on different worksheets.

    Here is the code I am using, and its in the "ThisWorkbook" section in "Microsoft Excel Objects" folder when you open vba.

    Please Login or Register  to view this content.
    I have tried several combos such as changing "Target.address (0, 0)" and nothing seems to work
    Thank you in advance!
    Last edited by dimattia; 05-17-2013 at 11:34 AM.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Cannot link two cells between worksheets

    Try something like:
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor tehneXus's Avatar
    Join Date
    04-12-2013
    Location
    Hamburg, Germany
    MS-Off Ver
    Work: MS-Office 2010 32bit @ Win8 32bit / Home: MS-Office 2016 32bit @ Win10 64bit
    Posts
    944

    Re: Cannot link two cells between worksheets

    see two examples, the first creates a formula and the 2nd copies a value (workbooks have to be open)

    Please Login or Register  to view this content.
    Please use [CODE]-TAGS
    When your problem is solved mark the thread SOLVED
    If an answer has helped you please click to give reputation
    Read the FORUM RULES

  4. #4
    Registered User
    Join Date
    05-13-2013
    Location
    edmonton alberta
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Cannot link two cells between worksheets

    Thanks! Turns out I found a solution right as both of these were posted. This was the code I ended up using

    Please Login or Register  to view this content.
    Thanks alot and I will definetly play around with both your suggestions!

+ 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