+ Reply to Thread
Results 1 to 4 of 4

List Range names in VBA

  1. #1
    Registered User
    Join Date
    05-04-2007
    Posts
    36

    List Range names in VBA

    Hello,

    I have field list in a pivot table in which I named "Month"

    and as the name mention, the range consist of Jan, Feb, Mar, Apr, May, etc.

    In another worksheet, I want to write a macro to list all the values contained in the Range "Month", and list in in column A.

    Can someone help me out with that?

    Thanks.

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Does this link help

    http://www.j-walk.com/ss/excel/tips/tip58.htm

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    05-04-2007
    Posts
    36
    not exactly what i'm looking for.

    I copied the code into a macro and ran it.

    what the code does is list all the Names contained in the workbook in column A

    and in column B, list the range it refers to.

    what im looking for this:
    example:

    A1: Jan
    A2: Feb
    A3: Mar
    A4: Apr
    A5: May
    A6: Jun
    A7: Jul
    A8: Aug
    A9: Sep
    A10: Oct
    A11: Nov
    A12: Dec

    Name: Month; Refers to: $A$1:$A$12

    Now I want to paste "Month" into Column B ($B$1:$B$12) using VBA

  4. #4
    Registered User
    Join Date
    05-04-2007
    Posts
    36
    got it figured

    thanks!

+ 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