Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am creating an Invoice by the help of macro where I want to clear all the
data from unlock cell after entering the buttom named NEXT or OK.So I could enter fresh data in the same unlock cell. How it possible? Rdgs...Sudipta |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sub setup()
Dim cel As Range, r As Range For Each r In ActiveSheet.UsedRange If r.Locked Then Else If cel Is Nothing Then Set cel = r Else Set cel = Union(cel, r) End If End If Next If cel Is Nothing Then Else cel.Clear End If End Sub -- Gary''s Student - gsnu200909 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thank Gary for ur co-operation. But actually I want clear content without
disburbing my formula & format from individual cell. means from a2 , c2, a7, d8 etc. want to use clear contents macro for mentioned cell. With Loves Sudipta "Gary''s Student" wrote: Sub setup() Dim cel As Range, r As Range For Each r In ActiveSheet.UsedRange If r.Locked Then Else If cel Is Nothing Then Set cel = r Else Set cel = Union(cel, r) End If End If Next If cel Is Nothing Then Else cel.Clear End If End Sub -- Gary''s Student - gsnu200909 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Return blank cell if data cell is blank | Excel Worksheet Functions | |||
Return value of non-blank cell | Excel Discussion (Misc queries) | |||
How to return a blank formula cell if the reference is blank? | Excel Worksheet Functions | |||
If cell blank return a blank | Excel Worksheet Functions | |||
return zero from a blank cell | Excel Worksheet Functions |