PPRuNe Forums - View Single Post - More vba help please
View Single Post
Old 16th June 2012 | 22:39
  #12 (permalink)  
Agent86
20 Anniversary
 
Joined: Mar 2003
Posts: 195
Likes: 2
From: Aus
BOAC,

Google search bought up this

MSlink

Sub Mover3()
Dim BkName As String
Dim NumSht As Integer
Dim BegSht As Integer

'Starts with second sheet - replace with index number of starting sheet.
BegSht = 2
'Moves two sheets - replace with number of sheets to move.
NumSht = 2
BkName = ActiveWorkbook.Name

For x = 1 To NumSht
'Moves second sheet in source to front of designated workbook.
Workbooks(BkName).Sheets(BegSht).Move _
Before : = Workbooks("Test.xls").Sheets(1)
'In each loop, the next sheet in line becomes indexed as number 2.
'Replace Test.xls with the full name of the target workbook you want.
Next
End Sub
That should give you some ideas

Max
Agent86 is offline  
Reply