Hi, i want to create a progress bar when running the below code, but i dont know how to add code to the below, i have checked the web for examples and they are task related, how can i create one for the below?
Code:
Sub Clear_Data()
Dim shtMLM As Worksheet
Dim ws As Worksheet
Set shtMLM = Sheets("Data")
Application.ScreenUpdating = False
For Each ws In Sheets(Array("MLM_Data", "Rec"))
ws.Unprotect Password:="Pass"
Next ws
If MsgBox("Danger you are about to clear MLM Raw_Data, are you sure you want to clear this?", vbYesNo + vbDefaultButton2) = vbYes Then
With shtMLM
Intersect(.UsedRange, .Rows("6:" & .Rows.Count)).ClearContents
End With
End If
For Each ws In Sheets(Array("MLM_Data", "Rec"))
ws.Protect Password:="Pass"
Next ws
End Sub