Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sheet code name
How do I refer to a sheet by it's code name? I have to sheets in a workbook
that data is written to, and want to add the date to the tab name. In the project explorer the names are refered to as Sheet1, Sheet2,.... The code below fails when trying to substitute the names in the explorer window. 'Sheets(Array("Open Items", "Requires verification")).Select Sheets(Array(Sheet1, Sheet2)).Select |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sheet code name
With ActiveWorkbook.VBProject.VBComponents
Sheets(Array(CStr(.Item("Sheet1").Properties("Name ")), _ CStr(.Item("Sheet2").Properties("Name")), _ CStr(.Item("Sheet3").Properties("Name")))).Select End With -- HTH Bob Phillips (remove nothere from email address if mailing direct) "Harley" wrote in message ... How do I refer to a sheet by it's code name? I have to sheets in a workbook that data is written to, and want to add the date to the tab name. In the project explorer the names are refered to as Sheet1, Sheet2,.... The code below fails when trying to substitute the names in the explorer window. 'Sheets(Array("Open Items", "Requires verification")).Select Sheets(Array(Sheet1, Sheet2)).Select |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sheet Name Changes how do i code for that | Excel Worksheet Functions | |||
VB code to copy sheet format to another sheet | Excel Discussion (Misc queries) | |||
Sheet Code Module: copying code to | Excel Programming | |||
excel - macro code to open a protected sheet, enter passowrd, and then protect sheet | Excel Programming | |||
unprotect sheet in code and make sheet visible | Excel Programming |