Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub RenameFiles()
Dim OldFileName As String, NewFileName As String, FolderName As String
FolderName = "D:\Files\"
OldFileName = Dir(FolderName & "*.xls", vbDirectory)
Do While OldFileName <> ""
Name FolderName & OldFileName As FolderName & UCase(OldFileName)
OldFileName = Dir
Loop
End Sub
Sub MakeUpperCase()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
For Each cell In ActiveSheet.UsedRange
If cell.HasFormula = False Then
cell.Value = UCase(cell.Value)
End If
Next cell
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
Sub MakeLowercase()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
For Each cell In ActiveSheet.UsedRange
If cell.HasFormula = False Then
cell.Value = LCase(cell.Value)
End If
Next cell
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
Sub MakeProperCase()
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
Dim myCell As Range
Dim myrng As Range
On Error Resume Next
Set myrng = Intersect(Selection, _
Selection.Cells _
.SpecialCells(xlCellTypeConstants, xlTextValues))
On Error GoTo 0
If myrng Is Nothing Then
MsgBox "Please select a range that contains text--no formulas!"
Exit Sub
End If
For Each myCell In myrng.Cells
myCell.Value = StrConv(myCell.Value, vbProperCase)
Next myCell
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub