Results 1 to 2 of 2

Auto-populate a range based on active selection with data from another sheet

Threaded View

  1. #1
    Registered User
    Join Date
    11-08-2013
    Location
    Boston, MA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Auto-populate a range based on active selection with data from another sheet

    I would like the value of a range of cells (e.g. "C1:C5") to change based on what cell is currently selected (e.g. "A1"). The range of cells would then populate with data from a second sheet (e.g. Sheets("Data").Range("B2:B6")).

    The code I'm currently working with:

    Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
    
    If Not Intersect(Target, Range("C4:G5,C14:G15,C24:G25")) Is Nothing Then
        Cancel = True
        Range("C27:C31").Value = <This needs to pull from another sheet based on what's selected>
    End If
    
    End Sub
    Last edited by nomwich; 12-13-2013 at 05:19 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 03-02-2014, 03:33 AM
  2. [SOLVED] Auto Populate cell based on auto filter selection from table in same sheet
    By missydanni in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-02-2013, 05:03 PM
  3. Replies: 2
    Last Post: 01-11-2013, 11:56 AM
  4. Auto-Populate Data Entry Format Based on Drop Down Selection. Macro?
    By pro10is4life in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-07-2013, 01:16 AM
  5. Auto –populate data from one sheet to another based on month
    By Roadrunner17 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-10-2012, 05:44 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