venkat1212
New Member
Hi Friends,
I want to make separate excel files for this.
I used the VBA code:
Sub Splitbook()
'Updateby20140612
Dim xPath As String
xPath = Application.ActiveWorkbook.Path
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each xWs In ThisWorkbook.Sheets
xWs.Copy
Application.ActiveWorkbook.SaveAs Filename:=xPath & "\" & xWs.Name & ".xlsx"
Application.ActiveWorkbook.Close False
Next
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End
And the result is:
After Debug it is showing ike this,
how to resolve....
▬▬▬▬▬▬▬▬▬ Mod edit : thread moved to appropriate forum !
I want to make separate excel files for this.
I used the VBA code:
Sub Splitbook()
'Updateby20140612
Dim xPath As String
xPath = Application.ActiveWorkbook.Path
Application.ScreenUpdating = False
Application.DisplayAlerts = False
For Each xWs In ThisWorkbook.Sheets
xWs.Copy
Application.ActiveWorkbook.SaveAs Filename:=xPath & "\" & xWs.Name & ".xlsx"
Application.ActiveWorkbook.Close False
Next
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End
And the result is:
After Debug it is showing ike this,
how to resolve....
▬▬▬▬▬▬▬▬▬ Mod edit : thread moved to appropriate forum !