snasui.com ยินดีต้อนรับ ยินดีต้อนรับสู่กระดานถามตอบ Excel and VBA และอื่น ๆ ที่เป็นมิตรกับทุกท่าน มีไฟล์แนบมหาศาล ช่วยให้ท่านค้นหาและติดตามศึกษาได้โดยง่าย สมาชิกท่านใดที่ยังไม่ได้ระบุ Version ของ Excel ที่ใช้งานจริง สามารถทำตาม Link นี้เพื่อจะได้รับคำตอบที่ตรงกับ Version ของท่านครับ ระบุ Version ของ Excel
I have written a code to delete signatures for all sheets and it works fine but I want to ask for your help how to delete cell contents with dates in all sheets.
Sub DeletePics()
Dim sht As Worksheet
Application.ScreenUpdating=False
For Each sht In ThisWorkbook.Worksheets
sht.Activate
ActiveSheet.DrawingObjects.Delete
Next sht
End Sub
Best Wishes,
You do not have the required permissions to view the files attached to this post.
Sub DeletePics()
Dim c As Range
Dim sht As Worksheet
Application.ScreenUpdating = False
For Each sht In ThisWorkbook.Worksheets
sht.Activate
For Each c In Range("a1:z100")
With c
If .Value = "Date:" Then .Offset(, 1).Resize(, 2).ClearContents
End With
Next c
ActiveSheet.DrawingObjects.Delete
Next sht
End Sub