I have a workbook which contains a worksheet called “ID”. This worksheet is very hidden. I would like a piece of VBA that will do the following:
Unhide the worksheet “ID”
Select the range “A4:A6”
Delete the contents of the range “A4:A6”
Very hide the worksheet “ID”
Return to worksheet “entercomments” cell “V1”
Could you help me with this please?
Thanks in advance.
Assuming the worksheet ID is not protected, you can clear the contents of that range without making the worksheet visible or selecting anything. See if this works for you.
If you want all the activity
.Visible = xlSheetVisible
.Visible = xlSheetVeryHidden
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here