ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selecting Range in non-active sheet (https://www.excelbanter.com/excel-programming/357234-selecting-range-non-active-sheet.html)

[email protected]

Selecting Range in non-active sheet
 
Hi,

Does anyone know how you can select a range in a sheet that is not the
currently active sheet, and then clear its contents.

I have tried:

Sheets("Sheetname").Cells.ClearContents etc etc but can't get it to
work,

Thanks,

Mike



All times are GMT +1. The time now is 11:42 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com