#1   Report Post  
Posted to microsoft.public.excel.misc
Natasha
 
Posts: n/a
Default Custom Lists

Could someone please tell me if there is a way of migrating Excel 2000 custom
lists to Excel 2003.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Custom Lists

Saved from a previous post:

Are you asking about the custom lists that you see in that dialog?

If yes, you can modify those lists manually via: Tools|Options|Custom lists

You could use a couple of macros, too.

The first exports the lists to a new worksheet.

Then save the workbook and open it on a different pc.

The second imports those extracted lists into excel on the new pc.

Option Explicit
Sub ExtractCustomList()

Dim iCtr As Long
Dim myArray As Variant
Dim newWks As Worksheet

Set newWks = Worksheets.Add
newWks.Cells.NumberFormat = "@"

For iCtr = 5 To Application.CustomListCount
myArray = Application.GetCustomListContents(iCtr)
newWks.Cells(1, iCtr - 4) _
.Resize(UBound(myArray) - LBound(myArray) + 1).Value _
= Application.Transpose(myArray)
Next iCtr
End Sub
Sub ImportCustomList()

Dim iCol As Long
Dim wks As Worksheet
Dim myArray As Variant

Set wks = ActiveSheet

With wks
For iCol = 1 To .Cells(1, .Columns.Count).End(xlToLeft).Column
myArray = .Range(.Cells(1, iCol), _
.Cells(.Rows.Count, iCol).End(xlUp)).Value
Application.AddCustomList listArray:=myArray
Next iCol
End With
End Sub

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Natasha wrote:

Could someone please tell me if there is a way of migrating Excel 2000 custom
lists to Excel 2003.

Thanks


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
Natasha
 
Posts: n/a
Default Custom Lists

Dave,

Thanks for the info. The export macro worked perfectly but the import macro
does not work. It keeps failing on the Application.AddCustomList line.

Natasha

"Natasha" wrote:

Could someone please tell me if there is a way of migrating Excel 2000 custom
lists to Excel 2003.

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson
 
Posts: n/a
Default Custom Lists

What is in the column where it failed?



Natasha wrote:

Dave,

Thanks for the info. The export macro worked perfectly but the import macro
does not work. It keeps failing on the Application.AddCustomList line.

Natasha

"Natasha" wrote:

Could someone please tell me if there is a way of migrating Excel 2000 custom
lists to Excel 2003.

Thanks


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tools Options Custom Lists starguy Excel Discussion (Misc queries) 3 April 21st 06 06:13 AM
Storing custom lists gimboid13 Excel Discussion (Misc queries) 1 March 17th 06 12:56 AM
Custom Lists in Excel Custom Lists in Excel Excel Discussion (Misc queries) 1 October 24th 05 07:43 PM
Using/referencing custom lists KR Excel Worksheet Functions 1 September 21st 05 07:26 PM
HOW DO I USE A CUSTOM LISTS barry New Users to Excel 1 December 29th 04 06:52 AM


All times are GMT +1. The time now is 10:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"