ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,738
- Office Version
- 2007
- Platform
- Windows
Hi,
I have a simple macro which just clears some data in a couple of cells.
The macro code is shown below.
Once it is run i am then unable to do anything with these cells.
If i save,close the worksheet & then open again it allows me to add values etc but as soon as i run this macro again back to square one in that i need to save,close & reopen again.
Can something be added to this macro which say resets etc without me having to close & open each time.
Thanks
I have a simple macro which just clears some data in a couple of cells.
The macro code is shown below.
Once it is run i am then unable to do anything with these cells.
If i save,close the worksheet & then open again it allows me to add values etc but as soon as i run this macro again back to square one in that i need to save,close & reopen again.
Can something be added to this macro which say resets etc without me having to close & open each time.
Thanks
Code:
Sub CLEARCELLS()'
' CLEARCELLS Macro
'
'
Range("G27:I27").ClearContents
Range("L31:O31").ClearContents
Range("G47:G50").ClearContents
End Sub