Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Thanks for the help, but I still have a question. I've used the following lines of code to take selected values from a list box and copy the sheets. The code shown does this EXCEPT I need the multiple sheets copied into a new, seperate workbook. If I take out the after:=Worksheets(Worksheets.Count) line, I can only get 1 sheet copied into a new workbook. Is there any way to copy all the sheets (could be as many as 60) to the new workbook? Dim Ndx As Long With Me.ListBox1 For Ndx = 0 To .ListCount - 1 If .Selected(Ndx) = True Then Worksheets(.List(Ndx)).Copy after:=Worksheets(Worksheets.Count) End If Next Ndx End With -- kev_06 ------------------------------------------------------------------------ kev_06's Profile: http://www.excelforum.com/member.php...o&userid=35046 View this thread: http://www.excelforum.com/showthread...hreadid=548060 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copying multiple sheets to new Workbook | Excel Discussion (Misc queries) | |||
Copying sheets to a new workbook | Excel Programming | |||
Copying multiple sheets to another workbook | Excel Programming | |||
Copying Sheets to New Workbook | Excel Programming | |||
Copying Sheets to New Workbook | Excel Programming |