PPRuNe Forums - View Single Post - More vba help please
View Single Post
Old 16th Jun 2012, 22:39
  #12 (permalink)  
Agent86
 
Join Date: Mar 2003
Location: Aus
Posts: 192
Received 0 Likes on 0 Posts
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