Hi,
i could really use some help with this.
i have this code that checks a column for an illegal character (for sheet name) and replaces it with "_".
I want it to check for the fill list of characters that are not allowable sheet names
Additionally, since the script is already going through the same column to check for blanks and delete empty rows, i thought it would be most efficient to combine it with this other function...
Thanks for any help
i could really use some help with this.
i have this code that checks a column for an illegal character (for sheet name) and replaces it with "_".
I want it to check for the fill list of characters that are not allowable sheet names
Code:
.Pattern = "[\<\>\*\\\/\?|]"
Code:
Sub ReplaceIllegalCharacters() 'this code searches column "I" for "\" and replaces it with "_"
Columns("I").Replace What:="\", _
Replacement:="_", _
LookAt:=xlPart, _
SearchOrder:=xlByRows, _
MatchCase:=False, _
SearchFormat:=False, _
ReplaceFormat:=False
End Sub
Additionally, since the script is already going through the same column to check for blanks and delete empty rows, i thought it would be most efficient to combine it with this other function...
Code:
'This code looks at column I for blanks and deletes the entire row were it finds them.
For j = Cells(Rows.Count, "I").End(xlUp).Row To 1 Step -1 On Error Resume Next
If Cells(j, "I") = "" Then Cells(j, "I").EntireRow.Delete xlUp
Next j
Thanks for any help