Vcol 1 Set Ws Sheets ("Master Sheet") Title "A1:C1" For Multiple Range Change
Vcol 1 Set Ws Sheets ("Master Sheet") Title "A1:C1" For Multiple Range Change
Vcol 1 Set Ws Sheets ("Master Sheet") Title "A1:C1" For Multiple Range Change
vcol =1 , the number 1 is the column number that you want to split the data
based on.
Set ws = Sheets("Master sheet"), Master sheet is the sheet name that you
want to apply this code.
title = "A1:C1" , A1:C1 is the range of the title.
For multiple range change
Dim vcol, i As Integer to Dim vcol As Long, i As Long
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 Sub
Sub DeleteRowIfContainZero()
Set myRange = Application.InputBox("Select one Range that you want to delete row if it contains
zero:", "DeleteRowIfContainZero", myRange.Address, Type:=8)
Do
myCell.EntireRow.Delete
End If
End Sub
PRESS F5 WHEN ASK FOR RANGE SELECT THE COLUMN FOR REMOVAL OF ZERO