ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Custom Lists-Transfer (https://www.excelbanter.com/excel-discussion-misc-queries/193048-custom-lists-transfer.html)

MarcoPolo

Custom Lists-Transfer
 
Will my 2003 Custom Lists tranfer over into 2007 with the 2007 install?
--
marcopolo

Nick Hodge[_2_]

Custom Lists-Transfer
 
Not sure, but imagine they will. You could try keeping 2003 on first install
and see if they are there is 2007 before un-installing 2007.

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.excelusergroup.org
web: www.nickhodge.co.uk





"marcopolo" wrote in message
...
Will my 2003 Custom Lists tranfer over into 2007 with the 2007 install?
--
marcopolo



Dave Peterson

Custom Lists-Transfer
 
I don't know.

But you can use a macro to retrieve the custom list and another macro to import
it.

Saved from a previous post.

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:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

marcopolo wrote:

Will my 2003 Custom Lists tranfer over into 2007 with the 2007 install?
--
marcopolo


--

Dave Peterson


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com