+ Reply to Thread
Results 1 to 4 of 4

Custom Lists

Hybrid View

  1. #1
    BuddyB
    Guest

    Custom Lists

    I have a workbook that I have developed a set of custom list criteria.
    However, this list was created on the home computer (faster). I run the
    program mainly on the laptop.
    My question is: when the program gets moved over to the laptop is there an
    easy way (macro etc) to transfer the custom list over to the laptop at the
    same time?

    Thanks in advance

    --
    Buddy

  2. #2
    Debra Dalgleish
    Guest

    Re: Custom Lists

    Custom lists are stored in the Windows registry. There's information in
    the following MSKB article:

    XL2000: How To Share a Custom AutoFill List
    http://support.microsoft.com/?kbid=213796


    BuddyB wrote:
    > I have a workbook that I have developed a set of custom list criteria.
    > However, this list was created on the home computer (faster). I run the
    > program mainly on the laptop.
    > My question is: when the program gets moved over to the laptop is there an
    > easy way (macro etc) to transfer the custom list over to the laptop at the
    > same time?
    >
    > Thanks in advance
    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


  3. #3
    BuddyB
    Guest

    Re: Custom Lists

    Followed the link, however, the macro in the example doesn't work on Excel XP
    , which is what I'm running. Any other suggestions?

    "Debra Dalgleish" wrote:

    > Custom lists are stored in the Windows registry. There's information in
    > the following MSKB article:
    >
    > XL2000: How To Share a Custom AutoFill List
    > http://support.microsoft.com/?kbid=213796
    >
    >
    > BuddyB wrote:
    > > I have a workbook that I have developed a set of custom list criteria.
    > > However, this list was created on the home computer (faster). I run the
    > > program mainly on the laptop.
    > > My question is: when the program gets moved over to the laptop is there an
    > > easy way (macro etc) to transfer the custom list over to the laptop at the
    > > same time?
    > >
    > > Thanks in advance
    > >

    >
    >
    > --
    > Debra Dalgleish
    > Excel FAQ, Tips & Book List
    > http://www.contextures.com/tiptech.html
    >
    >


  4. #4
    Debra Dalgleish
    Guest

    Re: Custom Lists

    The technique should work the same in Excel 2002 as is described for
    Excel 2000.

    You can use the following two macros. Run the first one (GetCustomLists)
    to extract the custom lists from your home computer. Copy that workbook
    to your laptop, and run the second macro (Custom_List), to add the
    custom lists to that machine.

    '========================
    Sub GetCustomLists()
    'extract custom lists from registry
    Dim listArray As Variant
    Dim iItems As Integer
    Dim iLists As Integer
    Dim ws As Worksheet
    For iLists = 5 To Application.CustomListCount
    listArray = Application.GetCustomListContents(iLists)
    Worksheets.Add
    Set ws = ActiveSheet
    For iItems = LBound(listArray, 1) To UBound(listArray, 1)
    ws.Cells(iItems, 1).Value = listArray(iItems)
    Next iItems
    Next iLists
    End Sub
    '=======================================
    Sub Custom_List()
    'add custom lists from active workbook to registry
    Dim ws As Worksheet
    Dim listArray As Variant
    For Each ws In ActiveWorkbook.Worksheets
    On Error Resume Next
    Application.AddCustomList _
    listArray:=ws.Range("A1").CurrentRegion
    Next ws
    End Sub

    '============================

    BuddyB wrote:
    > Followed the link, however, the macro in the example doesn't work on Excel XP
    > , which is what I'm running. Any other suggestions?
    >
    > "Debra Dalgleish" wrote:
    >
    >
    >>Custom lists are stored in the Windows registry. There's information in
    >>the following MSKB article:
    >>
    >>XL2000: How To Share a Custom AutoFill List
    >> http://support.microsoft.com/?kbid=213796
    >>
    >>
    >>BuddyB wrote:
    >>
    >>>I have a workbook that I have developed a set of custom list criteria.
    >>>However, this list was created on the home computer (faster). I run the
    >>>program mainly on the laptop.
    >>>My question is: when the program gets moved over to the laptop is there an
    >>>easy way (macro etc) to transfer the custom list over to the laptop at the
    >>>same time?
    >>>
    >>>Thanks in advance
    >>>

    >>
    >>
    >>--
    >>Debra Dalgleish
    >>Excel FAQ, Tips & Book List
    >>http://www.contextures.com/tiptech.html
    >>
    >>

    >



    --
    Debra Dalgleish
    Excel FAQ, Tips & Book List
    http://www.contextures.com/tiptech.html


+ 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