Hi ,
I am novice in VBA.. Need help on below below code.
This code import only one sheet, How to tweak the code to import multiple sheet?
Sub Macro()Dim sImportFile As String, sFile As String Dim sThisBk As Workbook Dim vfilename As Variant Application.ScreenUpdating = False Application.DisplayAlerts = False Set sThisBk = ActiveWorkbook sImportFile = Application.GetOpenFilename( _ fileFilter:=”Microsoft Excel Workbooks, *.xls; *.xml; *.xlsx”, Title:=”Open Workbook”) If sImportFile = “False” Then MsgBox “No File Selected!” Exit Sub Else vfilename = Split(sImportFile, “”) sFile = vfilename(UBound(vfilename)) With Application.Workbooks.Open(Filename:=sImportFile).Sheets(1) .Copy After:=sThisBk.Sheets(“Master File”) .Parent.Close savechanges:=False End With End If Application.ScreenUpdating = True Application.DisplayAlerts = True End If End Sub