I want to copy all the sheet from specific workbook to current workbook after Sheet1
Sub CopyAllSheets()
Dim MastWB As Workbook
Dim SalesWB As Workbook
Set MastWB = ThisWorkbook 'change to suit
Set SalesWB = Workbooks.Open("F:\WIN7PROFILE\Desktop\Rporting\Test.xls")
SalesWB.Sheets.Copy after:=MastWB.Sheets("Sheet1")
Workbook.SalesWB.Close
End Sub
This code is copying all the sheets, including hidden ones. How to copy only the visible sheets?