Livin404
Well-known Member
- Joined
- Jan 7, 2019
- Messages
- 743
- Office Version
- 365
- 2019
- Platform
- Windows
Greetings, I have a macro which works great in deleting contents. I thought I should have a message box asking the user are they sure before they commit to a major task. The message will read " This action will clear all PERSONNEL data from this X-Man". The clear macro I am currently using is:
VBA Code:
Sub XMan()
With ActiveSheet
With Range("A3:AB3", Range("A" & Rows.Count).End(xlUp)).ClearContents
End With
End With
End Sub