muhammad susanto
Well-known Member
- Joined
- Jan 8, 2013
- Messages
- 2,089
- Office Version
- 365
- 2021
- Platform
- Windows
hi all..
how to make this code more fast to delete / clear contents a range (C2:BU7130)
this code work but very slowly
thank in advance
.susanto
how to make this code more fast to delete / clear contents a range (C2:BU7130)
this code work but very slowly
VBA Code:
Sub DeleteRange()
Dim wkbCrntWorkBook As Workbook
Dim wkbSourceBook As Workbook
Dim rngSourceRange As Range
Set wkbCrntWorkBook = ActiveWorkbook
Set wkbSourceBook = ActiveWorkbook
With Application.InputBox(prompt:="Select range", Title:="Range", Default:="[B]C2:BU7130[/B]", Type:=8)
.SpecialCells (xlCellTypeConstants)
.ClearContents
End With
End Sub
thank in advance
.susanto