Use with On error
Sub MTest()
On Error Resume Next
ActiveSheet.UsedRange.Value = 0
Err.Clear
End Sub
Regards
Rajan verma
+91 7838100659 [IM-Gtalk]
From: [email protected] [mailto:[email protected]]
On Behalf Of [email protected]
Sent: 28 May 2012 8:10
To: [email protected]
Subject: Re: $$Excel-Macros$$ macro to make unlocked cell value zero
Thanks Rajan I will try it!
Sandeep Chhajer.
Sent on my BlackBerryR from Vodafone
_____
From: "Rajan_Verma" <[email protected]>
Sender: [email protected]
Date: Mon, 28 May 2012 19:17:12 +0530
To: <[email protected]>
ReplyTo: [email protected]
Subject: RE: $$Excel-Macros$$ macro to make unlocked cell value zero
Protect your sheet and Run this :
Sub MTest()
ActiveSheet.UsedRange.Value = 0
End Sub
Regards
Rajan verma
+91 7838100659 [IM-Gtalk]
From: [email protected] [mailto:[email protected]]
On Behalf Of Sandeep Chhajer
Sent: 28 May 2012 6:37
To: [email protected]
Subject: $$Excel-Macros$$ macro to make unlocked cell value zero
Dear Excel Guru,
I have a protected sheet where some cells are unprotected.
i want a macro which can make all unprotected cells to zero value.
Thanking you in advance.
--
Regards,
Sandeep Kumar Chhajer.
--
FORUM RULES (986+ members already BANNED for violation)
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security
measure.
4) Acknowledge the responses you receive, good or bad.
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
----------------------------------------------------------------------------
--------------------------
To post to this group, send email to [email protected]
To unsubscribe, send a blank email to
[email protected]
--
FORUM RULES (986+ members already BANNED for violation)
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security
measure.
4) Acknowledge the responses you receive, good or bad.
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
----------------------------------------------------------------------------
--------------------------
To post to this group, send email to [email protected]
To unsubscribe, send a blank email to
[email protected]
--
FORUM RULES (986+ members already BANNED for violation)
1) Use concise, accurate thread titles. Poor thread titles, like Please
Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will
not get quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security
measure.
4) Acknowledge the responses you receive, good or bad.
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
----------------------------------------------------------------------------
--------------------------
To post to this group, send email to [email protected]
To unsubscribe, send a blank email to
[email protected]
--
FORUM RULES (986+ members already BANNED for violation)
1) Use concise, accurate thread titles. Poor thread titles, like Please Help,
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Cross-promotion of, or links to, forums competitive to this forum in
signatures are prohibited.
NOTE : Don't ever post personal or confidential data in a workbook. Forum
owners and members are not responsible for any loss.
------------------------------------------------------------------------------------------------------
To post to this group, send email to [email protected]
To unsubscribe, send a blank email to [email protected]