+ Reply to Thread
Results 1 to 2 of 2

3 variables to fill up one destination

  1. #1
    Forum Contributor
    Join Date
    12-01-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2007
    Posts
    112

    3 variables to fill up one destination

    Dear Excel gurus,

    I need help to figure out on how to solve this problem.

    Here is the scenario:
    Sheet 1, Cell A7 (result of B7 or C7 or D7)
    Sheet 2, Cell B7 (variable)
    Sheet 3, Cell C7 (variable)
    Sheet 4, Cell D7 (variable)

    Problem to solve:
    If Sheet 2 is active, value of cell A7 is equal to cell B7, if sheet 3 is active, value of cell A7 is equal to cell C7 and if sheet 4 is active, value of cell A7 is equal to cell D7.

    Example data:
    Sheet 2, Cell B7 = 100
    Sheet 3, Cell C7 = 200
    Sheet 4, Cell D7 = 300

    Result:
    If sheet 2 is active value of cell A7 =100
    If sheet 3 is active value of cell A7 =200
    If sheet 4 is active value of cell A7 =300

    Thank you in advance…

  2. #2
    Forum Expert
    Join Date
    08-02-2013
    Location
    Québec
    MS-Off Ver
    Excel 2003, 2007, 2013
    Posts
    1,414

    Re: 3 variables to fill up one destination

    Hi,
    Maybe by using worksheet events.

    Code in sheet2 :
    Please Login or Register  to view this content.
    Code in sheet3:
    Please Login or Register  to view this content.
    Code in Sheet4
    Please Login or Register  to view this content.
    GC Excel

    If this post helps, then click the star icon (*) in the bottom left-hand corner of my post to Add reputation.

+ 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: 1
    Last Post: 09-11-2013, 02:47 PM
  2. Fill Down a Formula That Uses Variables - Anyone Know How?
    By Gard5096 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-21-2012, 02:56 PM
  3. Replies: 0
    Last Post: 11-05-2012, 03:30 PM
  4. Auto Fill Destination
    By tpowell55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2010, 11:30 AM
  5. Using destination filepaths listed in cell contents opposing to coding destination
    By kuraitori in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-22-2009, 01:23 PM

Tags for this Thread

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