+ Reply to Thread
Results 1 to 8 of 8

Populate Cells with Named Range Values

  1. #1
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Populate Cells with Named Range Values

    Hi All,

    I want to run a macro when a cell is changed and populate Cell A12 With
    the value in a named range.

    The Name of that range is in cell A3

    so i assumed i could do the following:

    Please Login or Register  to view this content.
    However its not working? any ideas people?

    thanks for reading this thread all
    Last edited by Macdave_19; 10-02-2008 at 09:15 AM.
    Mr MaGoo
    Magoo.Inc MMVII

    If i've helped please add to my Rep by Clicking on the Blue Scales in the top right hand corner of the post

  2. #2
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Populate Cells with Named Range Values

    Hi All,

    I want to run a macro when a cell is changed and populate Cell A12 With
    the value in a named range. The list contains 4 items and needs to populate cells A12 to A15.

    The Name of that range is in cell A3

    so i assumed i could do the following:

    Please Login or Register  to view this content.
    However its not working? any ideas people?

    thanks for reading this thread all
    Last edited by Macdave_19; 10-02-2008 at 09:13 AM.

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I'm not clear what you mean. Where does the named range come into this?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I can't understand what you are doing. Where's the named range?

  5. #5
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Question

    THere are 7 named ranges Called "GroupA" to "GroupH"

    Theat are in a sheet called Lists GroupA is IN Cells A2:A5 Group B is in Cells B2:B5 and so on etc.

    In My main sheet i have a Data Validation in cell C3 That has letters A>H in.

    When i Change this the Macro runs. This cell also affect Cell A3 Which displays the required list name by doing the following:

    Please Login or Register  to view this content.
    I want this list to populate in cells A12:A15 (it has 4 team names in)

    Hope thats a bit clearer

    Alternatively i could use:

    Please Login or Register  to view this content.
    However i want to remove a team name from the list using VBA when another cell is change unless you can do something like:

    Please Login or Register  to view this content.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Can you attach an example workbook?

  7. #7
    Valued Forum Contributor Macdave_19's Avatar
    Join Date
    03-14-2007
    Location
    Birmingham, England
    MS-Off Ver
    12.0
    Posts
    808

    Here u go :)

    Here you go, i've added comments to help a bit

    cheers for taking a look dude
    Attached Files Attached Files

  8. #8
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I don't think your code is working because you are changing C3 with a control not a physical change. Try changing C3 manually or with Data Validation

+ 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: 13
    Last Post: 09-29-2008, 10:36 AM
  2. Check if cell is part of a named range
    By RobynC in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2008, 02:31 PM
  3. Insert, shift cells down and populate
    By ugg in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-04-2007, 02:47 AM
  4. Populate list box from a range of cells?
    By samtwilliams in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 12-01-2007, 01:29 PM
  5. Replies: 0
    Last Post: 09-11-2006, 10:40 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