Hello Magicians,
I am using below line of code in my VBA sub but problem is content in cell is limited but its clearing out from G2 to G100000 which i have set but i want to make sure that vba automatically determine last cell in which there is a content and clear the whole range of content (Not Formating, only content)
Thanks in advance
I am using below line of code in my VBA sub but problem is content in cell is limited but its clearing out from G2 to G100000 which i have set but i want to make sure that vba automatically determine last cell in which there is a content and clear the whole range of content (Not Formating, only content)
VBA Code:
Worksheets("sheet1").Range("G2:G100000").ClearContents
Thanks in advance